home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / man / term.texi < prev    next >
Texinfo Document  |  1995-06-13  |  13.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Texinfo Document (document/texInfo).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Texinfo Document (document/texInfo) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file TeX document text default
99% file Texinfo source, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried x-fmt/111 Plain Text File default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 40 5c 69 6e 70 75 74 20 | 74 65 78 69 6e 66 6f 20 |@\input |texinfo |
|00000010| 40 63 20 2d 2a 2d 74 65 | 78 69 6e 66 6f 2d 2a 2d |@c -*-te|xinfo-*-|
|00000020| 0a 73 65 74 74 69 74 6c | 65 20 4e 6f 74 65 73 20 |.settitl|e Notes |
|00000030| 61 62 6f 75 74 20 65 6d | 61 63 73 20 54 65 72 6d |about em|acs Term|
|00000040| 20 6d 6f 64 65 0a 40 73 | 65 74 66 69 6c 65 6e 61 | mode.@s|etfilena|
|00000050| 6d 65 20 2e 2e 2f 69 6e | 66 6f 2f 74 65 72 6d 2e |me ../in|fo/term.|
|00000060| 69 6e 66 6f 0a 0a 40 74 | 69 74 6c 65 70 61 67 65 |info..@t|itlepage|
|00000070| 0a 40 73 70 20 36 0a 40 | 63 65 6e 74 65 72 20 40 |.@sp 6.@|center @|
|00000080| 74 69 74 6c 65 66 6f 6e | 74 28 4e 6f 74 65 73 20 |titlefon|t(Notes |
|00000090| 61 62 6f 75 74 20 45 6d | 61 63 73 20 54 45 52 4d |about Em|acs TERM|
|000000a0| 20 4d 6f 64 65 29 0a 40 | 65 6e 64 20 74 69 74 6c | Mode).@|end titl|
|000000b0| 65 70 61 67 65 0a 0a 40 | 69 66 69 6e 66 6f 0a 40 |epage..@|ifinfo.@|
|000000c0| 63 20 40 66 6f 72 6d 61 | 74 0a 40 63 20 53 54 41 |c @forma|t.@c STA|
|000000d0| 52 54 2d 49 4e 46 4f 2d | 44 49 52 2d 45 4e 54 52 |RT-INFO-|DIR-ENTR|
|000000e0| 59 0a 40 63 20 2a 20 74 | 65 72 6d 20 6d 6f 64 65 |Y.@c * t|erm mode|
|000000f0| 3a 3a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |:: | |
|00000100| 20 20 20 20 20 20 20 20 | 20 45 6d 61 63 73 20 74 | | Emacs t|
|00000110| 65 72 6d 69 6e 61 6c 20 | 65 6d 75 6c 61 74 6f 72 |erminal |emulator|
|00000120| 20 6d 6f 64 65 2e 0a 40 | 63 20 45 4e 44 2d 49 4e | mode..@|c END-IN|
|00000130| 46 4f 2d 44 49 52 2d 45 | 4e 54 52 59 0a 40 63 20 |FO-DIR-E|NTRY.@c |
|00000140| 40 65 6e 64 20 66 6f 72 | 6d 61 74 0a 0a 40 6e 6f |@end for|mat..@no|
|00000150| 64 65 20 54 6f 70 2c 20 | 2c 20 28 44 49 52 29 0a |de Top, |, (DIR).|
|00000160| 40 74 6f 70 20 54 65 72 | 6d 69 6e 61 6c 20 65 6d |@top Ter|minal em|
|00000170| 75 6c 61 74 6f 72 20 6d | 6f 64 65 0a 40 65 6e 64 |ulator m|ode.@end|
|00000180| 20 69 66 69 6e 66 6f 0a | 0a 54 68 69 73 20 69 73 | ifinfo.|.This is|
|00000190| 20 73 6f 6d 65 20 6e 6f | 74 65 73 20 61 62 6f 75 | some no|tes abou|
|000001a0| 74 20 74 68 65 20 74 65 | 72 6d 20 45 6d 61 63 73 |t the te|rm Emacs|
|000001b0| 20 6d 6f 64 65 2e 0a 0a | 40 6d 65 6e 75 0a 2a 20 | mode...|@menu.* |
|000001c0| 74 65 72 6d 20 6d 6f 64 | 65 3a 3a 0a 40 65 6e 64 |term mod|e::.@end|
|000001d0| 20 6d 65 6e 75 0a 0a 40 | 6e 6f 64 65 20 74 65 72 | menu..@|node ter|
|000001e0| 6d 20 6d 6f 64 65 0a 40 | 63 68 61 70 74 65 72 20 |m mode.@|chapter |
|000001f0| 54 65 72 6d 20 4d 6f 64 | 65 0a 0a 40 6d 65 6e 75 |Term Mod|e..@menu|
|00000200| 0a 2a 20 4f 76 65 72 76 | 69 65 77 3a 3a 0a 2a 20 |.* Overv|iew::.* |
|00000210| 43 6f 6e 6e 65 63 74 69 | 6e 67 20 74 6f 20 72 65 |Connecti|ng to re|
|00000220| 6d 6f 74 65 20 63 6f 6d | 70 75 74 65 72 73 3a 3a |mote com|puters::|
|00000230| 0a 2a 20 50 61 67 69 6e | 67 3a 3a 0a 2a 20 54 65 |.* Pagin|g::.* Te|
|00000240| 72 6d 69 6e 61 6c 20 65 | 73 63 61 70 65 73 3a 3a |rminal e|scapes::|
|00000250| 0a 40 65 6e 64 20 6d 65 | 6e 75 0a 0a 54 68 65 20 |.@end me|nu..The |
|00000260| 40 63 6f 64 65 7b 74 65 | 72 6d 7d 20 70 61 63 6b |@code{te|rm} pack|
|00000270| 61 67 65 20 69 6e 63 6c | 75 64 65 73 20 74 68 65 |age incl|udes the|
|00000280| 20 6d 61 6a 6f 72 20 6d | 6f 64 65 73 20 40 63 6f | major m|odes @co|
|00000290| 64 65 7b 74 65 72 6d 7d | 2c 0a 40 63 6f 64 65 7b |de{term}|,.@code{|
|000002a0| 73 68 65 6c 6c 7d 2c 20 | 61 6e 64 20 40 63 6f 64 |shell}, |and @cod|
|000002b0| 65 7b 67 75 64 7d 20 28 | 66 6f 72 20 72 75 6e 6e |e{gud} (|for runn|
|000002c0| 69 6e 67 20 67 62 64 20 | 6f 72 20 61 6e 6f 74 68 |ing gbd |or anoth|
|000002d0| 65 72 20 64 65 62 75 67 | 67 65 72 29 2e 0a 49 74 |er debug|ger)..It|
|000002e0| 20 69 73 20 61 20 72 65 | 70 6c 61 63 65 6d 65 6e | is a re|placemen|
|000002f0| 74 20 66 6f 72 20 74 68 | 65 20 63 6f 6d 69 6e 74 |t for th|e comint|
|00000300| 20 6d 6f 64 65 20 6f 66 | 20 45 6d 61 63 73 20 31 | mode of| Emacs 1|
|00000310| 39 2c 0a 61 73 20 77 65 | 6c 6c 20 61 73 20 73 68 |9,.as we|ll as sh|
|00000320| 65 6c 6c 2c 20 67 64 62 | 2c 20 74 65 72 6d 69 6e |ell, gdb|, termin|
|00000330| 61 6c 2c 20 61 6e 64 20 | 74 65 6c 6e 65 74 20 6d |al, and |telnet m|
|00000340| 6f 64 65 73 2e 0a 54 68 | 65 20 70 61 63 6b 61 67 |odes..Th|e packag|
|00000350| 65 20 77 6f 72 6b 73 20 | 62 65 73 74 20 77 69 74 |e works |best wit|
|00000360| 68 20 72 65 63 65 6e 74 | 20 72 65 6c 65 61 73 65 |h recent| release|
|00000370| 73 20 6f 66 20 45 6d 61 | 63 73 20 31 39 2c 0a 62 |s of Ema|cs 19,.b|
|00000380| 75 74 20 77 69 6c 6c 20 | 61 6c 73 6f 20 77 6f 72 |ut will |also wor|
|00000390| 6b 20 72 65 61 73 6f 6e | 61 62 6c 79 20 77 65 6c |k reason|ably wel|
|000003a0| 6c 20 77 69 74 68 20 45 | 6d 61 63 73 20 31 38 20 |l with E|macs 18 |
|000003b0| 61 73 20 77 65 6c 6c 20 | 61 73 20 4c 75 63 69 64 |as well |as Lucid|
|000003c0| 20 45 6d 61 63 73 20 31 | 39 2e 0a 0a 54 68 65 20 | Emacs 1|9...The |
|000003d0| 66 69 6c 65 20 40 63 6f | 64 65 7b 6e 73 68 65 6c |file @co|de{nshel|
|000003e0| 6c 2e 65 6c 7d 20 69 73 | 20 61 20 77 72 61 70 70 |l.el} is| a wrapp|
|000003f0| 65 72 20 74 6f 20 75 73 | 65 20 75 6e 6c 65 73 73 |er to us|e unless|
|00000400| 20 74 65 72 6d 20 6d 6f | 64 65 0a 69 73 20 62 75 | term mo|de.is bu|
|00000410| 69 6c 74 20 69 6e 74 6f | 20 45 6d 61 63 73 2e 20 |ilt into| Emacs. |
|00000420| 20 49 66 20 77 6f 72 6b | 73 20 61 72 6f 75 6e 64 | If work|s around|
|00000430| 20 73 6f 6d 65 20 6f 66 | 20 74 68 65 20 6d 69 73 | some of| the mis|
|00000440| 73 69 6e 67 0a 69 6e 20 | 6f 6c 64 65 72 20 45 6d |sing.in |older Em|
|00000450| 61 63 73 20 76 65 72 73 | 69 6f 6e 73 2e 0a 54 6f |acs vers|ions..To|
|00000460| 20 75 73 65 20 69 74 2c | 20 65 64 69 74 20 74 68 | use it,| edit th|
|00000470| 65 20 70 61 74 68 73 20 | 69 6e 20 40 63 6f 64 65 |e paths |in @code|
|00000480| 7b 6e 73 68 65 6c 6c 2e | 65 6c 7d 2c 20 61 70 70 |{nshell.|el}, app|
|00000490| 72 6f 70 72 69 61 74 65 | 6c 79 2c 0a 61 6e 64 20 |ropriate|ly,.and |
|000004a0| 74 68 65 6e 20 40 63 6f | 64 65 7b 4d 2d 78 20 6c |then @co|de{M-x l|
|000004b0| 6f 61 64 2d 66 69 6c 65 | 20 6e 73 68 65 6c 6c 2e |oad-file| nshell.|
|000004c0| 65 6c 20 52 45 54 7d 2e | 0a 54 68 69 73 20 77 69 |el RET}.|.This wi|
|000004d0| 6c 6c 20 61 6c 73 6f 20 | 6c 6f 61 64 20 69 6e 20 |ll also |load in |
|000004e0| 72 65 70 6c 61 63 65 6d | 65 6e 74 20 73 68 65 6c |replacem|ent shel|
|000004f0| 6c 20 61 6e 64 20 67 75 | 64 20 6d 6f 64 65 73 2e |l and gu|d modes.|
|00000500| 0a 0a 40 6e 6f 64 65 20 | 4f 76 65 72 76 69 65 77 |..@node |Overview|
|00000510| 0a 40 73 65 63 74 69 6f | 6e 20 4f 76 65 72 76 69 |.@sectio|n Overvi|
|00000520| 65 77 0a 0a 54 68 65 20 | 40 63 6f 64 65 7b 74 65 |ew..The |@code{te|
|00000530| 72 6d 7d 20 6d 6f 64 65 | 20 69 73 20 75 73 65 64 |rm} mode| is used|
|00000540| 20 74 6f 20 63 6f 6e 74 | 72 6f 6c 20 61 20 70 72 | to cont|rol a pr|
|00000550| 6f 67 72 61 6d 20 28 61 | 6e 20 22 69 6e 66 65 72 |ogram (a|n "infer|
|00000560| 69 6f 72 20 70 72 6f 63 | 65 73 73 22 29 2e 0a 49 |ior proc|ess")..I|
|00000570| 74 20 73 65 6e 64 73 20 | 6d 6f 73 74 20 6b 65 79 |t sends |most key|
|00000580| 62 6f 61 72 64 20 69 6e | 70 75 74 20 63 68 61 72 |board in|put char|
|00000590| 61 63 74 65 72 73 20 74 | 6f 20 74 68 65 20 70 72 |acters t|o the pr|
|000005a0| 6f 67 72 61 6d 2c 0a 61 | 6e 64 20 64 69 73 70 6c |ogram,.a|nd displ|
|000005b0| 61 79 73 20 6f 75 74 70 | 75 74 20 66 72 6f 6d 20 |ays outp|ut from |
|000005c0| 74 68 65 20 70 72 6f 67 | 72 61 6d 20 69 6e 20 74 |the prog|ram in t|
|000005d0| 68 65 20 62 75 66 66 65 | 72 2e 0a 54 68 69 73 20 |he buffe|r..This |
|000005e0| 69 73 20 73 69 6d 69 6c | 61 72 20 74 6f 20 74 68 |is simil|ar to th|
|000005f0| 65 20 74 72 61 64 69 74 | 69 6f 6e 61 6c 20 63 6f |e tradit|ional co|
|00000600| 6d 69 6e 74 20 6d 6f 64 | 65 2c 20 61 6e 64 0a 6d |mint mod|e, and.m|
|00000610| 6f 64 65 73 20 64 65 72 | 69 76 65 64 20 66 72 6f |odes der|ived fro|
|00000620| 6d 20 69 74 20 28 73 75 | 63 68 20 61 73 20 73 68 |m it (su|ch as sh|
|00000630| 65 6c 6c 20 61 6e 64 20 | 67 64 62 20 6d 6f 64 65 |ell and |gdb mode|
|00000640| 73 29 2e 0a 59 6f 75 20 | 63 61 6e 20 64 6f 20 77 |s)..You |can do w|
|00000650| 69 74 68 20 74 68 65 20 | 6e 65 77 20 74 65 72 6d |ith the |new term|
|00000660| 2d 62 61 73 65 64 20 73 | 68 65 6c 6c 20 74 68 65 |-based s|hell the|
|00000670| 20 73 61 6d 65 20 73 6f | 72 74 0a 6f 66 20 74 68 | same so|rt.of th|
|00000680| 69 6e 67 73 20 79 6f 75 | 20 63 6f 75 6c 64 20 64 |ings you| could d|
|00000690| 6f 20 77 69 74 68 20 74 | 68 65 20 6f 6c 64 20 73 |o with t|he old s|
|000006a0| 68 65 6c 6c 20 6d 6f 64 | 65 2c 0a 75 73 69 6e 67 |hell mod|e,.using|
|000006b0| 20 6d 6f 72 65 20 6f 72 | 20 6c 65 73 73 20 74 68 | more or| less th|
|000006c0| 65 20 73 61 6d 65 20 69 | 6e 74 65 72 66 61 63 65 |e same i|nterface|
|000006d0| 2e 20 20 48 6f 77 65 76 | 65 72 2c 20 74 68 65 0a |. Howev|er, the.|
|000006e0| 6e 65 77 20 6d 6f 64 65 | 20 69 73 20 6d 6f 72 65 |new mode| is more|
|000006f0| 20 66 6c 65 78 69 62 6c | 65 2c 20 61 6e 64 20 77 | flexibl|e, and w|
|00000700| 6f 72 6b 73 20 73 6f 6d | 65 77 68 61 74 20 64 69 |orks som|ewhat di|
|00000710| 66 66 65 72 65 6e 74 6c | 79 2e 0a 0a 40 6d 65 6e |fferentl|y...@men|
|00000720| 75 0a 2a 20 4f 75 74 70 | 75 74 20 66 72 6f 6d 20 |u.* Outp|ut from |
|00000730| 74 68 65 20 69 6e 66 65 | 72 69 6f 72 3a 3a 0a 2a |the infe|rior::.*|
|00000740| 20 73 75 62 62 75 66 66 | 65 72 3a 3a 20 54 68 65 | subbuff|er:: The|
|00000750| 20 73 75 62 2d 62 75 66 | 66 65 72 0a 2a 20 61 6c | sub-buf|fer.* al|
|00000760| 74 73 75 62 62 75 66 66 | 65 72 3a 3a 20 54 68 65 |tsubbuff|er:: The|
|00000770| 20 61 6c 74 65 72 6e 61 | 74 65 20 73 75 62 2d 62 | alterna|te sub-b|
|00000780| 75 66 66 65 72 0a 2a 20 | 49 6e 70 75 74 20 74 6f |uffer.* |Input to|
|00000790| 20 74 68 65 20 69 6e 66 | 65 72 69 6f 72 3a 3a 0a | the inf|erior::.|
|000007a0| 40 65 6e 64 20 6d 65 6e | 75 0a 0a 40 6e 6f 64 65 |@end men|u..@node|
|000007b0| 20 4f 75 74 70 75 74 20 | 66 72 6f 6d 20 74 68 65 | Output |from the|
|000007c0| 20 69 6e 66 65 72 69 6f | 72 0a 40 73 75 62 73 65 | inferio|r.@subse|
|000007d0| 63 74 69 6f 6e 20 4f 75 | 74 70 75 74 20 66 72 6f |ction Ou|tput fro|
|000007e0| 6d 20 74 68 65 20 69 6e | 66 65 72 69 6f 72 0a 0a |m the in|ferior..|
|000007f0| 49 6e 20 74 79 70 69 63 | 61 6c 20 75 73 61 67 65 |In typic|al usage|
|00000800| 2c 20 6f 75 74 70 75 74 | 20 66 72 6f 6d 20 74 68 |, output| from th|
|00000810| 65 20 69 6e 66 65 72 69 | 6f 72 20 69 73 0a 61 64 |e inferi|or is.ad|
|00000820| 64 65 64 20 74 6f 20 74 | 68 65 20 65 6e 64 20 6f |ded to t|he end o|
|00000830| 66 20 74 68 65 20 62 75 | 66 66 65 72 2e 20 20 49 |f the bu|ffer. I|
|00000840| 66 20 6e 65 65 64 65 64 | 2c 20 74 68 65 20 77 69 |f needed|, the wi|
|00000850| 6e 64 6f 77 0a 77 69 6c | 6c 20 62 65 20 73 63 72 |ndow.wil|l be scr|
|00000860| 6f 6c 6c 65 64 2c 20 6a | 75 73 74 20 6c 69 6b 65 |olled, j|ust like|
|00000870| 20 61 20 72 65 67 75 6c | 61 72 20 74 65 72 6d 69 | a regul|ar termi|
|00000880| 6e 61 6c 2e 0a 28 4f 6e | 6c 79 20 6f 6e 65 20 6c |nal..(On|ly one l|
|00000890| 69 6e 65 20 61 74 20 61 | 20 74 69 6d 65 20 77 69 |ine at a| time wi|
|000008a0| 6c 6c 20 62 65 20 73 63 | 72 6f 6c 6c 65 64 2c 20 |ll be sc|rolled, |
|000008b0| 6a 75 73 74 20 6c 69 6b | 65 0a 72 65 67 75 6c 61 |just lik|e.regula|
|000008c0| 72 20 74 65 72 6d 69 6e | 61 6c 73 2c 20 61 6e 64 |r termin|als, and|
|000008d0| 20 69 6e 20 63 6f 6e 74 | 72 61 73 74 20 74 6f 20 | in cont|rast to |
|000008e0| 74 68 65 20 6f 6c 64 20 | 73 68 65 6c 6c 20 6d 6f |the old |shell mo|
|000008f0| 64 65 2e 29 0a 54 68 75 | 73 20 74 68 65 20 62 75 |de.).Thu|s the bu|
|00000900| 66 66 65 72 20 62 65 63 | 6f 6d 65 73 20 61 20 6c |ffer bec|omes a l|
|00000910| 6f 67 20 6f 66 20 79 6f | 75 72 20 69 6e 74 65 72 |og of yo|ur inter|
|00000920| 61 63 74 69 6f 6e 20 77 | 69 74 68 20 74 68 65 0a |action w|ith the.|
|00000930| 69 6e 66 65 72 69 6f 72 | 2c 20 6a 75 73 74 20 6c |inferior|, just l|
|00000940| 69 6b 65 20 74 68 65 20 | 6f 6c 64 20 73 68 65 6c |ike the |old shel|
|00000950| 6c 20 6d 6f 64 65 2e 0a | 0a 4c 69 6b 65 20 61 20 |l mode..|.Like a |
|00000960| 72 65 61 6c 20 74 65 72 | 6d 69 6e 61 6c 2c 20 74 |real ter|minal, t|
|00000970| 65 72 6d 20 6d 61 69 6e | 74 61 69 6e 73 20 61 20 |erm main|tains a |
|00000980| 22 63 75 72 73 6f 72 20 | 70 6f 73 69 74 69 6f 6e |"cursor |position|
|00000990| 2e 22 0a 54 68 69 73 20 | 69 73 20 74 68 65 20 40 |.".This |is the @|
|000009a0| 63 6f 64 65 7b 70 72 6f | 63 65 73 73 2d 6d 61 72 |code{pro|cess-mar|
|000009b0| 6b 7d 20 6f 66 20 74 68 | 65 20 69 6e 66 65 72 69 |k} of th|e inferi|
|000009c0| 6f 72 20 70 72 6f 63 65 | 73 73 2e 0a 49 66 20 74 |or proce|ss..If t|
|000009d0| 68 65 20 70 72 6f 63 65 | 73 73 2d 6d 61 72 6b 20 |he proce|ss-mark |
|000009e0| 69 73 20 6e 6f 74 20 61 | 74 20 74 68 65 20 65 6e |is not a|t the en|
|000009f0| 64 20 6f 66 20 74 68 65 | 20 62 75 66 66 65 72 2c |d of the| buffer,|
|00000a00| 20 6f 75 74 70 75 74 20 | 66 72 6f 6d 0a 74 68 65 | output |from.the|
|00000a10| 20 69 6e 66 65 72 69 6f | 72 20 77 69 6c 6c 20 6f | inferio|r will o|
|00000a20| 76 65 72 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |verwrite| existin|
|00000a30| 67 20 74 65 78 74 20 69 | 6e 20 74 68 65 20 62 75 |g text i|n the bu|
|00000a40| 66 66 65 72 2e 0a 54 68 | 69 73 20 69 73 20 6c 69 |ffer..Th|is is li|
|00000a50| 6b 65 20 61 20 72 65 61 | 6c 20 74 65 72 6d 69 6e |ke a rea|l termin|
|00000a60| 61 6c 2c 20 62 75 74 20 | 75 6e 6c 69 6b 65 20 74 |al, but |unlike t|
|00000a70| 68 65 20 6f 6c 64 20 73 | 68 65 6c 6c 20 6d 6f 64 |he old s|hell mod|
|00000a80| 65 0a 28 77 68 69 63 68 | 20 69 6e 73 65 72 74 73 |e.(which| inserts|
|00000a90| 20 74 68 65 20 6f 75 74 | 70 75 74 2c 20 69 6e 73 | the out|put, ins|
|00000aa0| 74 65 61 64 20 6f 66 20 | 6f 76 65 72 77 72 69 74 |tead of |overwrit|
|00000ab0| 69 6e 67 29 2e 0a 0a 53 | 6f 6d 65 20 70 72 6f 67 |ing)...S|ome prog|
|00000ac0| 72 61 6d 73 20 28 73 75 | 63 68 20 61 73 20 45 6d |rams (su|ch as Em|
|00000ad0| 61 63 73 20 69 74 73 65 | 6c 66 29 20 6e 65 65 64 |acs itse|lf) need|
|00000ae0| 20 74 6f 20 63 6f 6e 74 | 72 6f 6c 20 74 68 65 0a | to cont|rol the.|
|00000af0| 61 70 70 65 61 72 61 6e | 63 65 20 6f 6e 20 74 68 |appearan|ce on th|
|00000b00| 65 20 73 63 72 65 65 6e | 20 69 6e 20 64 65 74 61 |e screen| in deta|
|00000b10| 69 6c 2e 20 20 54 68 65 | 79 20 64 6f 20 74 68 69 |il. The|y do thi|
|00000b20| 73 20 62 79 0a 73 65 6e | 64 69 6e 67 20 73 70 65 |s by.sen|ding spe|
|00000b30| 63 69 61 6c 20 63 6f 6e | 74 72 6f 6c 20 63 6f 64 |cial con|trol cod|
|00000b40| 65 73 2e 20 20 54 68 65 | 20 65 78 61 63 74 20 63 |es. The| exact c|
|00000b50| 6f 6e 74 72 6f 6c 0a 63 | 6f 64 65 73 20 6e 65 65 |ontrol.c|odes nee|
|00000b60| 64 65 64 20 66 72 6f 6d | 20 74 65 72 6d 69 6e 61 |ded from| termina|
|00000b70| 6c 20 74 6f 20 74 65 72 | 6d 69 6e 61 6c 2c 20 62 |l to ter|minal, b|
|00000b80| 75 74 20 6e 6f 77 61 64 | 61 79 73 0a 6d 6f 73 74 |ut nowad|ays.most|
|00000b90| 20 74 65 72 6d 69 6e 61 | 6c 73 20 61 6e 64 20 74 | termina|ls and t|
|00000ba0| 65 72 6d 69 6e 61 6c 20 | 65 6d 75 6c 61 74 6f 72 |erminal |emulator|
|00000bb0| 73 20 28 69 6e 63 6c 75 | 64 69 6e 67 20 78 74 65 |s (inclu|ding xte|
|00000bc0| 72 6d 29 0a 75 6e 64 65 | 72 73 74 61 6e 64 20 74 |rm).unde|rstand t|
|00000bd0| 68 65 20 73 6f 2d 63 61 | 6c 6c 65 64 20 22 41 4e |he so-ca|lled "AN|
|00000be0| 53 49 20 65 73 63 61 70 | 65 20 73 65 71 75 65 6e |SI escap|e sequen|
|00000bf0| 63 65 73 22 20 28 66 69 | 72 73 74 0a 70 6f 70 75 |ces" (fi|rst.popu|
|00000c00| 6c 61 72 69 7a 65 64 20 | 62 79 20 74 68 65 20 44 |larized |by the D|
|00000c10| 69 67 69 74 61 6c 27 73 | 20 56 54 31 30 30 20 66 |igital's| VT100 f|
|00000c20| 61 6d 69 6c 79 20 6f 66 | 20 74 65 72 6d 69 6e 61 |amily of| termina|
|00000c30| 6c 29 2e 0a 54 68 65 20 | 74 65 72 6d 20 6d 6f 64 |l)..The |term mod|
|00000c40| 65 20 61 6c 73 6f 20 75 | 6e 64 65 72 73 74 61 6e |e also u|nderstan|
|00000c50| 64 73 20 74 68 65 73 65 | 20 65 73 63 61 70 65 20 |ds these| escape |
|00000c60| 73 65 71 75 65 6e 63 65 | 73 2c 0a 61 6e 64 20 66 |sequence|s,.and f|
|00000c70| 6f 72 20 65 61 63 68 20 | 63 6f 6e 74 72 6f 6c 20 |or each |control |
|00000c80| 63 6f 64 65 20 64 6f 65 | 73 20 74 68 65 20 61 70 |code doe|s the ap|
|00000c90| 70 72 6f 70 72 69 61 74 | 65 20 74 68 69 6e 67 0a |propriat|e thing.|
|00000ca0| 74 6f 20 63 68 61 6e 67 | 65 20 74 68 65 20 62 75 |to chang|e the bu|
|00000cb0| 66 66 65 72 20 73 6f 20 | 74 68 61 74 20 74 68 65 |ffer so |that the|
|00000cc0| 20 61 70 70 65 61 72 61 | 6e 63 65 20 6f 66 20 74 | appeara|nce of t|
|00000cd0| 68 65 20 77 69 6e 64 6f | 77 0a 77 69 6c 6c 20 6d |he windo|w.will m|
|00000ce0| 61 74 63 68 20 77 68 61 | 74 20 69 74 20 77 6f 75 |atch wha|t it wou|
|00000cf0| 6c 64 20 62 65 20 6f 6e | 20 61 20 72 65 61 6c 20 |ld be on| a real |
|00000d00| 74 65 72 6d 69 6e 61 6c | 2e 0a 28 49 6e 20 63 6f |terminal|..(In co|
|00000d10| 6e 74 72 61 73 74 2c 20 | 74 68 65 20 6f 6c 64 20 |ntrast, |the old |
|00000d20| 73 68 65 6c 6c 20 6d 6f | 64 65 20 64 6f 65 73 6e |shell mo|de doesn|
|00000d30| 27 74 20 68 61 6e 64 6c | 65 0a 74 65 72 6d 69 6e |'t handl|e.termin|
|00000d40| 61 6c 20 63 6f 6e 74 72 | 6f 6c 20 63 6f 64 65 73 |al contr|ol codes|
|00000d50| 20 61 74 20 61 6c 6c 2e | 29 0a 0a 53 65 65 20 3c | at all.|)..See <|
|00000d60| 2e 2e 2e 3e 20 66 6f 72 | 20 74 68 65 20 73 70 65 |...> for| the spe|
|00000d70| 63 69 66 69 63 20 63 6f | 6e 74 72 6f 6c 20 63 6f |cific co|ntrol co|
|00000d80| 64 65 73 2e 0a 0a 40 6e | 6f 64 65 20 73 75 62 62 |des...@n|ode subb|
|00000d90| 75 66 66 65 72 0a 40 73 | 75 62 73 65 63 74 69 6f |uffer.@s|ubsectio|
|00000da0| 6e 20 54 68 65 20 73 75 | 62 2d 62 75 66 66 65 72 |n The su|b-buffer|
|00000db0| 0a 0a 41 20 70 72 6f 67 | 72 61 6d 20 74 68 61 74 |..A prog|ram that|
|00000dc0| 20 74 61 6c 6b 73 20 74 | 6f 20 74 65 72 6d 69 6e | talks t|o termin|
|00000dd0| 61 6c 20 65 78 70 65 63 | 74 73 20 74 68 65 20 74 |al expec|ts the t|
|00000de0| 65 72 6d 69 6e 61 6c 20 | 74 6f 20 68 61 76 65 20 |erminal |to have |
|00000df0| 61 20 66 69 78 65 64 20 | 73 69 7a 65 2e 20 0a 49 |a fixed |size. .I|
|00000e00| 66 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 69 73 |f the pr|ogram is|
|00000e10| 20 74 61 6c 6b 69 6e 67 | 20 61 20 74 65 72 6d 69 | talking| a termi|
|00000e20| 6e 61 6c 20 65 6d 75 6c | 61 74 6f 72 20 70 72 6f |nal emul|ator pro|
|00000e30| 67 72 61 6d 20 73 75 63 | 68 20 61 73 20 40 63 6f |gram suc|h as @co|
|00000e40| 64 65 7b 78 74 65 72 6d | 7d 2c 0a 74 68 61 74 20 |de{xterm|},.that |
|00000e50| 73 69 7a 65 20 63 61 6e | 20 62 65 20 63 68 61 6e |size can| be chan|
|00000e60| 67 65 64 20 28 69 66 20 | 74 68 65 20 78 74 65 72 |ged (if |the xter|
|00000e70| 6d 20 77 69 6e 64 6f 77 | 20 69 73 20 72 65 2d 73 |m window| is re-s|
|00000e80| 69 7a 65 64 29 2c 20 62 | 75 74 20 70 72 6f 67 72 |ized), b|ut progr|
|00000e90| 61 6d 73 0a 73 74 69 6c | 6c 20 61 73 73 75 6d 65 |ams.stil|l assume|
|00000ea0| 20 61 20 6c 6f 67 69 63 | 61 6c 20 74 65 72 6d 69 | a logic|al termi|
|00000eb0| 6e 61 6c 20 74 68 61 74 | 20 68 61 73 20 61 20 66 |nal that| has a f|
|00000ec0| 69 78 65 64 20 73 69 7a | 65 20 69 6e 64 65 70 65 |ixed siz|e indepe|
|00000ed0| 6e 64 65 6e 74 0a 6f 66 | 20 74 68 65 20 61 6d 6f |ndent.of| the amo|
|00000ee0| 75 6e 74 20 6f 66 20 6f | 75 74 70 75 74 20 74 72 |unt of o|utput tr|
|00000ef0| 61 6e 73 6d 69 74 74 65 | 64 20 62 79 20 74 68 65 |ansmitte|d by the|
|00000f00| 20 70 72 6f 67 72 61 6d | 73 2e 0a 0a 54 6f 20 70 | program|s...To p|
|00000f10| 72 6f 67 72 61 6d 73 20 | 74 68 61 74 20 75 73 65 |rograms |that use|
|00000f20| 20 69 74 2c 20 74 68 65 | 20 45 6d 61 63 73 20 74 | it, the| Emacs t|
|00000f30| 65 72 6d 69 6e 61 6c 20 | 65 6d 75 6c 61 74 6f 72 |erminal |emulator|
|00000f40| 20 61 63 74 73 20 61 73 | 20 69 66 20 69 74 0a 74 | acts as| if it.t|
|00000f50| 6f 6f 20 68 61 73 20 61 | 20 66 69 78 65 64 20 73 |oo has a| fixed s|
|00000f60| 69 7a 65 2e 20 20 54 68 | 65 20 40 64 66 6e 7b 73 |ize. Th|e @dfn{s|
|00000f70| 75 62 2d 62 75 66 66 65 | 72 7d 20 69 73 20 74 68 |ub-buffe|r} is th|
|00000f80| 65 20 70 61 72 74 20 6f | 66 20 61 20 40 63 6f 64 |e part o|f a @cod|
|00000f90| 65 7b 74 65 72 6d 7d 2d | 6d 6f 64 65 0a 62 75 66 |e{term}-|mode.buf|
|00000fa0| 66 65 72 20 74 68 61 74 | 20 63 6f 72 72 65 73 70 |fer that| corresp|
|00000fb0| 6f 6e 64 73 20 74 6f 20 | 61 20 22 6e 6f 72 6d 61 |onds to |a "norma|
|00000fc0| 6c 22 20 74 65 72 6d 69 | 6e 61 6c 2e 20 20 4d 6f |l" termi|nal. Mo|
|00000fd0| 73 74 20 6f 66 20 74 68 | 65 20 74 69 6d 65 0a 28 |st of th|e time.(|
|00000fe0| 75 6e 6c 65 73 73 20 79 | 6f 75 20 65 78 70 6c 69 |unless y|ou expli|
|00000ff0| 63 69 74 6c 79 20 73 63 | 72 6f 6c 6c 20 74 68 65 |citly sc|roll the|
|00001000| 20 77 69 6e 64 6f 77 20 | 64 69 73 70 6c 61 79 69 | window |displayi|
|00001010| 6e 67 20 74 68 65 20 62 | 75 66 66 65 72 29 2c 0a |ng the b|uffer),.|
|00001020| 74 68 65 20 73 75 62 2d | 62 75 66 66 65 72 20 69 |the sub-|buffer i|
|00001030| 73 20 74 68 65 20 70 61 | 72 74 20 6f 66 20 74 68 |s the pa|rt of th|
|00001040| 65 20 62 75 66 66 65 72 | 20 74 68 61 74 20 69 73 |e buffer| that is|
|00001050| 20 64 69 73 70 6c 61 79 | 65 64 20 69 6e 20 61 20 | display|ed in a |
|00001060| 77 69 6e 64 6f 77 2e 0a | 0a 54 68 65 20 73 75 62 |window..|.The sub|
|00001070| 2d 62 75 66 66 65 72 20 | 69 73 20 64 65 66 69 6e |-buffer |is defin|
|00001080| 65 64 20 69 6e 20 74 65 | 72 6d 73 20 6f 66 20 74 |ed in te|rms of t|
|00001090| 68 72 65 65 20 62 75 66 | 66 65 72 2d 6c 6f 63 61 |hree buf|fer-loca|
|000010a0| 6c 2d 76 61 72 69 61 62 | 6c 65 3a 0a 0a 40 64 65 |l-variab|le:..@de|
|000010b0| 66 76 61 72 20 74 65 72 | 6d 2d 68 65 69 67 68 74 |fvar ter|m-height|
|000010c0| 0a 54 68 65 20 68 65 69 | 67 68 74 20 6f 66 20 74 |.The hei|ght of t|
|000010d0| 68 65 20 73 75 62 2d 62 | 75 66 66 65 72 2c 20 69 |he sub-b|uffer, i|
|000010e0| 6e 20 73 63 72 65 65 6e | 20 6c 69 6e 65 73 2e 0a |n screen| lines..|
|000010f0| 40 65 6e 64 20 64 65 66 | 76 61 72 0a 0a 40 64 65 |@end def|var..@de|
|00001100| 66 76 61 72 20 74 65 72 | 6d 2d 77 69 64 74 68 0a |fvar ter|m-width.|
|00001110| 54 68 65 20 77 69 64 74 | 68 20 6f 66 20 74 68 65 |The widt|h of the|
|00001120| 20 73 75 62 2d 62 75 66 | 66 65 72 2c 20 69 6e 20 | sub-buf|fer, in |
|00001130| 73 63 72 65 65 6e 20 63 | 6f 6c 75 6d 6e 73 2e 0a |screen c|olumns..|
|00001140| 40 65 6e 64 20 64 65 66 | 76 61 72 0a 0a 40 64 65 |@end def|var..@de|
|00001150| 66 76 61 72 20 74 65 72 | 6d 2d 68 6f 6d 65 2d 6d |fvar ter|m-home-m|
|00001160| 61 72 6b 65 72 0a 54 68 | 65 20 22 68 6f 6d 65 22 |arker.Th|e "home"|
|00001170| 20 70 6f 73 69 74 69 6f | 6e 2c 20 74 68 61 74 20 | positio|n, that |
|00001180| 69 73 20 74 68 65 20 74 | 6f 70 20 6c 65 66 74 20 |is the t|op left |
|00001190| 63 6f 72 6e 65 72 20 6f | 66 20 74 68 65 20 73 75 |corner o|f the su|
|000011a0| 62 2d 62 75 66 66 65 72 | 2e 0a 40 65 6e 64 20 64 |b-buffer|..@end d|
|000011b0| 65 66 76 61 72 0a 0a 54 | 68 65 20 73 75 62 2d 62 |efvar..T|he sub-b|
|000011c0| 75 66 66 65 72 20 69 73 | 20 61 73 73 75 6d 65 64 |uffer is| assumed|
|000011d0| 20 74 6f 20 62 65 20 74 | 68 65 20 65 6e 64 20 70 | to be t|he end p|
|000011e0| 61 72 74 20 6f 66 20 74 | 68 65 20 62 75 66 66 65 |art of t|he buffe|
|000011f0| 72 3b 0a 74 68 65 20 40 | 63 6f 64 65 7b 74 65 72 |r;.the @|code{ter|
|00001200| 6d 2d 68 6f 6d 65 2d 6d | 61 72 6b 65 72 7d 20 73 |m-home-m|arker} s|
|00001210| 68 6f 75 6c 64 20 6e 65 | 76 65 72 20 62 65 20 6d |hould ne|ver be m|
|00001220| 6f 72 65 20 74 68 61 6e | 0a 40 63 6f 64 65 7b 74 |ore than|.@code{t|
|00001230| 65 72 6d 2d 68 65 69 67 | 68 74 7d 20 73 63 72 65 |erm-heig|ht} scre|
|00001240| 65 6e 20 6c 69 6e 65 73 | 20 66 72 6f 6d 20 74 68 |en lines| from th|
|00001250| 65 20 65 6e 64 20 6f 66 | 20 74 68 65 20 62 75 66 |e end of| the buf|
|00001260| 66 65 72 2e 0a 0a 40 6e | 6f 64 65 20 61 6c 74 73 |fer...@n|ode alts|
|00001270| 75 62 62 75 66 66 65 72 | 0a 40 73 75 62 73 65 63 |ubbuffer|.@subsec|
|00001280| 74 69 6f 6e 20 54 68 65 | 20 61 6c 74 65 72 6e 61 |tion The| alterna|
|00001290| 74 65 20 73 75 62 2d 62 | 75 66 66 65 72 0a 0a 57 |te sub-b|uffer..W|
|000012a0| 68 65 6e 20 61 20 22 67 | 72 61 70 68 69 63 61 6c |hen a "g|raphical|
|000012b0| 22 20 70 72 6f 67 72 61 | 6d 20 66 69 6e 69 73 68 |" progra|m finish|
|000012c0| 65 73 2c 20 69 74 20 69 | 73 20 6e 69 63 65 20 74 |es, it i|s nice t|
|000012d0| 6f 0a 72 65 73 74 6f 72 | 65 20 74 68 65 20 73 63 |o.restor|e the sc|
|000012e0| 72 65 65 6e 20 73 74 61 | 74 65 20 74 6f 20 77 68 |reen sta|te to wh|
|000012f0| 61 74 20 69 74 20 77 61 | 73 20 62 65 66 6f 72 65 |at it wa|s before|
|00001300| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 73 74 61 | the pro|gram sta|
|00001310| 72 74 65 64 2e 0a 4d 61 | 6e 79 20 70 65 6f 70 6c |rted..Ma|ny peopl|
|00001320| 65 20 61 72 65 20 75 73 | 65 64 20 74 6f 20 74 68 |e are us|ed to th|
|00001330| 69 73 20 62 65 68 61 76 | 69 6f 72 20 66 72 6f 6d |is behav|ior from|
|00001340| 20 40 63 6f 64 65 7b 78 | 74 65 72 6d 7d 2c 20 61 | @code{x|term}, a|
|00001350| 6e 64 0a 69 74 73 20 61 | 6c 73 6f 20 6f 66 66 65 |nd.its a|lso offe|
|00001360| 72 65 64 20 62 79 20 74 | 68 65 20 40 63 6f 64 65 |red by t|he @code|
|00001370| 7b 74 65 72 6d 7d 20 65 | 6d 75 6c 61 74 6f 72 2e |{term} e|mulator.|
|00001380| 0a 0a 40 64 65 66 75 6e | 20 74 65 72 6d 2d 73 77 |..@defun| term-sw|
|00001390| 69 74 63 68 2d 74 6f 2d | 61 6c 74 65 72 6e 61 74 |itch-to-|alternat|
|000013a0| 65 2d 73 75 62 2d 62 75 | 66 66 65 72 20 73 65 74 |e-sub-bu|ffer set|
|000013b0| 0a 49 66 20 40 76 61 72 | 7b 73 65 74 7d 20 69 73 |.If @var|{set} is|
|000013c0| 20 74 72 75 65 2c 20 61 | 6e 64 20 77 65 27 72 65 | true, a|nd we're|
|000013d0| 20 6e 6f 74 20 61 6c 72 | 65 61 64 79 20 75 73 69 | not alr|eady usi|
|000013e0| 6e 67 20 74 68 65 20 61 | 6c 74 65 72 6e 61 74 65 |ng the a|lternate|
|000013f0| 20 73 75 62 2d 62 75 66 | 66 65 72 2c 0a 73 77 69 | sub-buf|fer,.swi|
|00001400| 74 63 68 20 74 6f 20 69 | 74 2e 20 20 57 68 61 74 |tch to i|t. What|
|00001410| 20 74 68 69 73 20 6d 65 | 61 6e 73 20 69 73 20 74 | this me|ans is t|
|00001420| 68 61 74 20 74 68 65 20 | 40 63 6f 64 65 7b 74 65 |hat the |@code{te|
|00001430| 72 6d 2d 68 6f 6d 65 2d | 6d 61 72 6b 65 72 7d 0a |rm-home-|marker}.|
|00001440| 69 73 20 73 61 76 65 64 | 20 28 69 6e 20 74 68 65 |is saved| (in the|
|00001450| 20 76 61 72 69 61 62 6c | 65 20 40 63 6f 64 65 7b | variabl|e @code{|
|00001460| 74 65 72 6d 2d 73 61 76 | 65 64 2d 68 6f 6d 65 2d |term-sav|ed-home-|
|00001470| 6d 61 72 6b 65 72 7d 29 | 2c 20 61 6e 64 20 74 68 |marker})|, and th|
|00001480| 65 0a 40 63 6f 64 65 7b | 74 65 72 6d 2d 68 6f 6d |e.@code{|term-hom|
|00001490| 65 2d 6d 61 72 6b 65 72 | 7d 20 69 73 20 73 65 74 |e-marker|} is set|
|000014a0| 20 74 6f 20 74 68 65 20 | 65 6e 64 20 6f 66 20 74 | to the |end of t|
|000014b0| 68 65 20 62 75 66 66 65 | 72 2e 0a 0a 49 66 20 40 |he buffe|r...If @|
|000014c0| 76 61 72 7b 73 65 74 7d | 20 69 73 20 66 61 6c 73 |var{set}| is fals|
|000014d0| 65 20 61 6e 64 20 77 65 | 27 72 65 20 75 73 69 6e |e and we|'re usin|
|000014e0| 67 20 74 68 65 20 61 6c | 74 65 72 6e 61 74 65 20 |g the al|ternate |
|000014f0| 73 75 62 2d 62 75 66 66 | 65 72 2c 0a 73 77 69 74 |sub-buff|er,.swit|
|00001500| 63 68 20 62 61 63 6b 20 | 74 6f 20 74 68 65 20 73 |ch back |to the s|
|00001510| 61 76 65 64 20 73 75 62 | 2d 62 75 66 66 65 72 2e |aved sub|-buffer.|
|00001520| 20 20 57 68 61 74 20 74 | 68 69 73 20 6d 65 61 6e | What t|his mean|
|00001530| 73 20 69 73 20 74 68 61 | 74 20 74 68 65 0a 28 63 |s is tha|t the.(c|
|00001540| 75 72 72 65 6e 74 2c 20 | 61 6c 74 65 72 6e 61 74 |urrent, |alternat|
|00001550| 65 29 20 73 75 62 2d 62 | 75 66 66 65 72 20 69 73 |e) sub-b|uffer is|
|00001560| 20 64 65 6c 65 74 65 64 | 20 28 75 73 69 6e 67 0a | deleted| (using.|
|00001570| 40 63 6f 64 65 7b 28 64 | 65 6c 65 74 65 2d 72 65 |@code{(d|elete-re|
|00001580| 67 69 6f 6e 20 74 65 72 | 6d 2d 68 6f 6d 65 2d 6d |gion ter|m-home-m|
|00001590| 61 72 6b 65 72 20 28 70 | 6f 69 6e 74 2d 6d 61 78 |arker (p|oint-max|
|000015a0| 29 29 7d 29 2c 20 61 6e | 64 20 74 68 65 6e 20 74 |))}), an|d then t|
|000015b0| 68 65 0a 40 63 6f 64 65 | 7b 74 65 72 6d 2d 68 6f |he.@code|{term-ho|
|000015c0| 6d 65 2d 6d 61 72 6b 65 | 72 7d 20 69 73 20 72 65 |me-marke|r} is re|
|000015d0| 73 74 6f 72 65 64 20 28 | 66 72 6f 6d 20 40 63 6f |stored (|from @co|
|000015e0| 64 65 7b 74 65 72 6d 2d | 73 61 76 65 64 2d 68 6f |de{term-|saved-ho|
|000015f0| 6d 65 2d 6d 61 72 6b 65 | 72 7d 29 2e 0a 40 65 6e |me-marke|r})..@en|
|00001600| 64 20 64 65 66 75 6e 0a | 0a 40 6e 6f 64 65 20 49 |d defun.|.@node I|
|00001610| 6e 70 75 74 20 74 6f 20 | 74 68 65 20 69 6e 66 65 |nput to |the infe|
|00001620| 72 69 6f 72 0a 40 73 75 | 62 73 65 63 74 69 6f 6e |rior.@su|bsection|
|00001630| 20 49 6e 70 75 74 20 74 | 6f 20 74 68 65 20 69 6e | Input t|o the in|
|00001640| 66 65 72 69 6f 72 0a 0a | 43 68 61 72 61 63 74 65 |ferior..|Characte|
|00001650| 72 73 20 74 79 70 65 64 | 20 62 79 20 74 68 65 20 |rs typed| by the |
|00001660| 75 73 65 72 20 61 72 65 | 20 73 65 6e 74 20 74 6f |user are| sent to|
|00001670| 20 74 68 65 20 69 6e 66 | 65 72 69 6f 72 2e 0a 48 | the inf|erior..H|
|00001680| 6f 77 20 74 68 69 73 20 | 69 73 20 64 6f 6e 65 20 |ow this |is done |
|00001690| 64 65 70 65 6e 64 73 20 | 6f 6e 20 77 68 65 74 68 |depends |on wheth|
|000016a0| 65 72 20 74 68 65 20 40 | 63 6f 64 65 7b 74 65 72 |er the @|code{ter|
|000016b0| 6d 7d 20 62 75 66 66 65 | 72 0a 69 73 20 69 6e 20 |m} buffe|r.is in |
|000016c0| 22 63 68 61 72 61 63 74 | 65 72 22 20 6d 6f 64 65 |"charact|er" mode|
|000016d0| 20 6f 72 20 22 6c 69 6e | 65 22 20 6d 6f 64 65 2e | or "lin|e" mode.|
|000016e0| 0a 28 41 20 40 63 6f 64 | 65 7b 74 65 72 6d 7d 20 |.(A @cod|e{term} |
|000016f0| 62 75 66 66 65 72 20 63 | 61 6e 20 61 6c 73 6f 20 |buffer c|an also |
|00001700| 62 65 20 69 6e 20 22 70 | 61 67 65 72 22 20 6d 6f |be in "p|ager" mo|
|00001710| 64 65 2e 0a 54 68 69 73 | 20 69 73 20 64 69 73 63 |de..This| is disc|
|00001720| 75 73 73 65 64 20 3c 6c | 61 74 65 72 3e 2e 29 0a |ussed <l|ater>.).|
|00001730| 57 68 69 63 68 20 6f 66 | 20 74 68 65 73 65 20 69 |Which of| these i|
|00001740| 73 20 63 75 72 72 65 6e | 74 6c 79 20 61 63 74 69 |s curren|tly acti|
|00001750| 76 65 20 69 73 20 73 70 | 65 63 69 66 69 65 64 20 |ve is sp|ecified |
|00001760| 69 6e 20 74 68 65 20 6d | 6f 64 65 20 6c 69 6e 65 |in the m|ode line|
|00001770| 2e 0a 54 68 65 20 64 69 | 66 66 65 72 65 6e 63 65 |..The di|fference|
|00001780| 20 62 65 74 77 65 65 6e | 20 74 68 65 6d 20 69 73 | between| them is|
|00001790| 20 74 68 65 20 6b 65 79 | 2d 62 69 6e 64 69 6e 67 | the key|-binding|
|000017a0| 73 20 61 76 61 69 6c 61 | 62 6c 65 2e 0a 0a 49 6e |s availa|ble...In|
|000017b0| 20 63 68 61 72 61 63 74 | 65 72 20 6d 6f 64 65 2c | charact|er mode,|
|000017c0| 20 6f 6e 65 20 63 68 61 | 72 61 63 74 65 72 20 28 | one cha|racter (|
|000017d0| 62 79 20 64 65 66 61 75 | 6c 74 20 40 6b 65 79 7b |by defau|lt @key{|
|000017e0| 43 2d 63 7d 29 20 69 73 | 20 73 70 65 63 69 61 6c |C-c}) is| special|
|000017f0| 2c 0a 61 6e 64 20 69 73 | 20 61 20 70 72 65 66 69 |,.and is| a prefi|
|00001800| 78 20 66 6f 72 20 76 61 | 72 69 6f 75 73 20 63 6f |x for va|rious co|
|00001810| 6d 6d 61 6e 64 73 2e 20 | 20 41 6c 6c 20 6f 74 68 |mmands. | All oth|
|00001820| 65 72 20 63 68 61 72 61 | 63 74 65 72 73 20 61 72 |er chara|cters ar|
|00001830| 65 0a 73 65 6e 74 20 64 | 69 72 65 63 74 6c 79 20 |e.sent d|irectly |
|00001840| 74 6f 20 74 68 65 20 69 | 6e 66 65 72 69 6f 72 20 |to the i|nferior |
|00001850| 70 72 6f 63 65 73 73 2c | 20 77 69 74 68 20 6e 6f |process,| with no|
|00001860| 20 69 6e 74 65 72 70 72 | 65 74 61 74 69 6f 6e 20 | interpr|etation |
|00001870| 62 79 20 45 6d 61 63 73 | 2e 0a 43 68 61 72 61 63 |by Emacs|..Charac|
|00001880| 74 65 72 20 6d 6f 64 65 | 20 6c 6f 6f 6b 73 20 61 |ter mode| looks a|
|00001890| 6e 64 20 66 65 65 6c 73 | 20 6c 69 6b 65 20 61 20 |nd feels| like a |
|000018a0| 72 65 61 6c 20 74 65 72 | 6d 69 6e 61 6c 2c 20 6f |real ter|minal, o|
|000018b0| 72 20 61 20 63 6f 6e 76 | 65 6e 74 69 6f 6e 61 6c |r a conv|entional|
|000018c0| 0a 74 65 72 6d 69 6e 61 | 6c 20 65 6d 75 6c 61 74 |.termina|l emulat|
|000018d0| 6f 72 20 73 75 63 68 20 | 61 73 20 78 74 65 72 6d |or such |as xterm|
|000018e0| 2e 0a 0a 49 6e 20 6c 69 | 6e 65 20 6d 6f 64 65 2c |...In li|ne mode,|
|000018f0| 20 6b 65 79 20 63 6f 6d | 6d 61 6e 64 73 20 6d 6f | key com|mands mo|
|00001900| 73 74 6c 79 20 68 61 76 | 65 20 73 74 61 6e 64 61 |stly hav|e standa|
|00001910| 72 64 20 45 6d 61 63 73 | 20 61 63 74 69 6f 6e 73 |rd Emacs| actions|
|00001920| 2e 0a 52 65 67 75 6c 61 | 72 73 20 63 68 61 72 61 |..Regula|rs chara|
|00001930| 63 74 65 72 73 20 69 6e | 73 65 72 74 20 74 68 65 |cters in|sert the|
|00001940| 6d 73 65 6c 76 65 73 20 | 69 6e 74 6f 20 74 68 65 |mselves |into the|
|00001950| 20 62 75 66 66 65 72 2e | 0a 57 68 65 6e 20 72 65 | buffer.|.When re|
|00001960| 74 75 72 6e 20 69 73 20 | 74 79 70 65 64 2c 20 74 |turn is |typed, t|
|00001970| 68 65 20 65 6e 74 69 72 | 65 20 63 75 72 72 65 6e |he entir|e curren|
|00001980| 74 20 6c 69 6e 65 20 6f | 66 20 74 68 65 20 62 75 |t line o|f the bu|
|00001990| 66 66 65 72 0a 28 65 78 | 63 65 70 74 20 70 6f 73 |ffer.(ex|cept pos|
|000019a0| 73 69 62 6c 79 20 74 68 | 65 20 70 72 6f 6d 70 74 |sibly th|e prompt|
|000019b0| 29 20 69 73 20 73 65 6e | 74 20 74 6f 20 74 68 65 |) is sen|t to the|
|000019c0| 20 69 6e 66 65 72 69 6f | 72 20 70 72 6f 63 65 73 | inferio|r proces|
|000019d0| 73 2e 0a 4c 69 6e 65 20 | 6d 6f 64 65 20 69 73 20 |s..Line |mode is |
|000019e0| 62 61 73 69 63 61 6c 6c | 79 20 74 68 65 20 6f 72 |basicall|y the or|
|000019f0| 69 67 69 6e 61 6c 20 73 | 68 65 6c 6c 20 6d 6f 64 |iginal s|hell mod|
|00001a00| 65 20 66 72 6f 6d 20 65 | 61 72 6c 69 65 72 20 45 |e from e|arlier E|
|00001a10| 6d 61 63 73 20 76 65 72 | 73 69 6f 6e 73 2e 0a 0a |macs ver|sions...|
|00001a20| 54 6f 20 73 77 69 74 63 | 68 20 66 72 6f 6d 20 6c |To switc|h from l|
|00001a30| 69 6e 65 20 6d 6f 64 65 | 20 74 6f 20 63 68 61 72 |ine mode| to char|
|00001a40| 61 63 74 65 72 20 6d 6f | 64 65 20 74 79 70 65 20 |acter mo|de type |
|00001a50| 40 6b 62 64 7b 43 2d 63 | 20 63 7d 2e 0a 54 6f 20 |@kbd{C-c| c}..To |
|00001a60| 73 77 69 74 63 68 20 66 | 72 6f 6d 20 63 68 61 72 |switch f|rom char|
|00001a70| 61 63 74 65 72 20 6d 6f | 64 65 20 74 6f 20 6c 69 |acter mo|de to li|
|00001a80| 6e 65 20 6d 6f 64 65 20 | 74 79 70 65 20 40 6b 62 |ne mode |type @kb|
|00001a90| 64 7b 43 2d 63 20 6c 7d | 2e 0a 0a 49 6e 20 65 69 |d{C-c l}|...In ei|
|00001aa0| 74 68 65 72 20 6d 6f 64 | 65 2c 20 22 65 63 68 6f |ther mod|e, "echo|
|00001ab0| 69 6e 67 22 20 6f 66 20 | 75 73 65 72 20 69 6e 70 |ing" of |user inp|
|00001ac0| 75 74 20 69 73 20 68 61 | 6e 64 6c 65 64 20 62 79 |ut is ha|ndled by|
|00001ad0| 20 74 68 65 20 69 6e 66 | 65 72 69 6f 72 2e 0a 54 | the inf|erior..T|
|00001ae0| 68 65 72 65 66 6f 72 2c | 20 69 6e 20 6c 69 6e 65 |herefor,| in line|
|00001af0| 20 6d 6f 64 65 20 61 66 | 74 65 72 20 61 6e 20 69 | mode af|ter an i|
|00001b00| 6e 70 75 74 20 6c 69 6e | 65 20 61 74 20 74 68 65 |nput lin|e at the|
|00001b10| 20 65 6e 64 20 6f 66 20 | 74 68 65 20 62 75 66 66 | end of |the buff|
|00001b20| 65 72 0a 69 73 20 73 65 | 6e 74 20 74 6f 20 74 68 |er.is se|nt to th|
|00001b30| 65 20 69 6e 66 65 72 69 | 6f 72 2c 20 69 74 20 69 |e inferi|or, it i|
|00001b40| 73 20 64 65 6c 65 74 65 | 64 20 66 72 6f 6d 20 74 |s delete|d from t|
|00001b50| 68 65 20 62 75 66 66 65 | 72 2e 0a 54 68 69 73 20 |he buffe|r..This |
|00001b60| 69 73 20 73 6f 20 74 68 | 61 74 20 74 68 65 20 69 |is so th|at the i|
|00001b70| 6e 66 65 72 69 6f 72 20 | 63 61 6e 20 65 63 68 6f |nferior |can echo|
|00001b80| 20 74 68 65 20 69 6e 70 | 75 74 2c 20 69 66 20 69 | the inp|ut, if i|
|00001b90| 74 20 77 69 73 68 65 73 | 0a 28 77 68 69 63 68 20 |t wishes|.(which |
|00001ba0| 69 74 20 6e 6f 72 6d 61 | 6c 6c 79 20 64 6f 65 73 |it norma|lly does|
|00001bb0| 29 2e 0a 0a 40 6e 6f 64 | 65 20 43 6f 6e 6e 65 63 |)...@nod|e Connec|
|00001bc0| 74 69 6e 67 20 74 6f 20 | 72 65 6d 6f 74 65 20 63 |ting to |remote c|
|00001bd0| 6f 6d 70 75 74 65 72 73 | 0a 40 73 65 63 74 69 6f |omputers|.@sectio|
|00001be0| 6e 20 43 6f 6e 6e 65 63 | 74 69 6e 67 20 74 6f 20 |n Connec|ting to |
|00001bf0| 72 65 6d 6f 74 65 20 63 | 6f 6d 70 75 74 65 72 73 |remote c|omputers|
|00001c00| 0a 0a 49 66 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |..If you| want to|
|00001c10| 20 6c 6f 67 69 6e 20 74 | 6f 20 61 20 72 65 6d 6f | login t|o a remo|
|00001c20| 76 65 20 63 6f 6d 70 75 | 74 65 72 2c 20 79 6f 75 |ve compu|ter, you|
|00001c30| 20 63 61 6e 20 64 6f 20 | 74 68 61 74 20 6a 75 73 | can do |that jus|
|00001c40| 74 20 61 73 0a 79 6f 75 | 20 77 6f 75 6c 64 20 65 |t as.you| would e|
|00001c50| 78 70 65 63 74 2c 20 75 | 73 69 6e 67 20 77 68 61 |xpect, u|sing wha|
|00001c60| 74 65 76 65 72 20 63 6f | 6d 6d 61 6e 64 73 20 79 |tever co|mmands y|
|00001c70| 6f 75 20 77 6f 75 6c 64 | 20 6e 6f 72 6d 61 6c 6c |ou would| normall|
|00001c80| 79 20 75 73 65 2e 0a 0a | 28 54 68 69 73 20 69 73 |y use...|(This is|
|00001c90| 20 77 6f 72 74 68 20 65 | 6d 70 68 61 73 69 7a 69 | worth e|mphasizi|
|00001ca0| 6e 67 2c 20 62 65 63 61 | 75 73 65 20 65 61 72 6c |ng, beca|use earl|
|00001cb0| 69 65 72 20 76 65 72 73 | 69 6f 6e 73 20 6f 66 20 |ier vers|ions of |
|00001cc0| 40 63 6f 64 65 7b 73 68 | 65 6c 6c 7d 0a 6d 6f 64 |@code{sh|ell}.mod|
|00001cd0| 65 20 77 6f 75 6c 64 20 | 6e 6f 74 20 77 6f 72 6b |e would |not work|
|00001ce0| 20 70 72 6f 70 65 72 6c | 79 20 69 66 20 79 6f 75 | properl|y if you|
|00001cf0| 20 74 72 69 65 64 20 74 | 6f 20 6c 6f 67 20 69 6e | tried t|o log in|
|00001d00| 20 74 6f 20 73 6f 6d 65 | 20 6f 74 68 65 72 0a 63 | to some| other.c|
|00001d10| 6f 6d 70 75 74 65 72 2c | 20 62 65 63 61 75 73 65 |omputer,| because|
|00001d20| 20 6f 66 20 74 68 65 20 | 77 61 79 20 65 63 68 6f | of the |way echo|
|00001d30| 69 6e 67 20 77 61 73 20 | 68 61 6e 64 6c 65 64 2e |ing was |handled.|
|00001d40| 20 20 54 68 61 74 20 69 | 73 20 77 68 79 0a 74 68 | That i|s why.th|
|00001d50| 65 72 65 20 77 61 73 20 | 61 20 73 65 70 61 72 61 |ere was |a separa|
|00001d60| 74 65 20 40 63 6f 64 65 | 7b 74 65 6c 6e 65 74 7d |te @code|{telnet}|
|00001d70| 20 6d 6f 64 65 20 74 6f | 20 70 61 72 74 69 61 6c | mode to| partial|
|00001d80| 6c 79 20 63 6f 6d 70 65 | 6e 73 61 74 65 20 66 6f |ly compe|nsate fo|
|00001d90| 72 0a 74 68 65 73 65 20 | 70 72 6f 62 6c 65 6d 73 |r.these |problems|
|00001da0| 2e 20 20 54 68 65 20 40 | 63 6f 64 65 7b 74 65 6c |. The @|code{tel|
|00001db0| 6e 65 74 7d 20 6d 6f 64 | 65 20 69 73 20 6e 6f 20 |net} mod|e is no |
|00001dc0| 6c 6f 6e 67 65 72 20 6e | 65 65 64 65 64 2c 20 61 |longer n|eeded, a|
|00001dd0| 6e 64 0a 69 73 20 62 61 | 73 69 63 61 6c 6c 79 20 |nd.is ba|sically |
|00001de0| 6f 62 73 6f 6c 65 74 65 | 2e 29 0a 0a 41 20 70 72 |obsolete|.)..A pr|
|00001df0| 6f 67 72 61 6d 20 74 68 | 61 74 20 61 73 6b 73 20 |ogram th|at asks |
|00001e00| 79 6f 75 20 66 6f 72 20 | 61 20 70 61 73 73 77 6f |you for |a passwo|
|00001e10| 72 64 20 77 69 6c 6c 20 | 6e 6f 72 6d 61 6c 6c 79 |rd will |normally|
|00001e20| 20 73 75 70 70 72 65 73 | 73 0a 65 63 68 6f 69 6e | suppres|s.echoin|
|00001e30| 67 20 6f 66 20 74 68 65 | 20 70 61 73 73 77 6f 72 |g of the| passwor|
|00001e40| 64 2c 20 73 6f 20 74 68 | 65 20 70 61 73 73 77 6f |d, so th|e passwo|
|00001e50| 72 64 20 77 69 6c 6c 20 | 6e 6f 74 20 73 68 6f 77 |rd will |not show|
|00001e60| 20 75 70 20 69 6e 20 74 | 68 65 20 62 75 66 66 65 | up in t|he buffe|
|00001e70| 72 2e 0a 54 68 69 73 20 | 77 69 6c 6c 20 68 61 70 |r..This |will hap|
|00001e80| 70 65 6e 20 6a 75 73 74 | 20 61 73 20 69 66 20 79 |pen just| as if y|
|00001e90| 6f 75 20 77 65 72 65 20 | 75 73 69 6e 67 20 61 20 |ou were |using a |
|00001ea0| 72 65 61 6c 20 74 65 72 | 6d 69 6e 61 6c 2c 20 69 |real ter|minal, i|
|00001eb0| 66 0a 74 68 65 20 62 75 | 66 66 65 72 20 69 73 20 |f.the bu|ffer is |
|00001ec0| 69 6e 20 63 68 61 72 20 | 6d 6f 64 65 2e 20 20 49 |in char |mode. I|
|00001ed0| 66 20 69 74 20 69 73 20 | 69 6e 20 6c 69 6e 65 20 |f it is |in line |
|00001ee0| 6d 6f 64 65 2c 20 74 68 | 65 20 70 61 73 73 77 6f |mode, th|e passwo|
|00001ef0| 72 64 0a 77 69 6c 6c 20 | 62 65 20 74 65 6d 70 6f |rd.will |be tempo|
|00001f00| 72 61 72 69 6c 79 20 76 | 69 73 69 62 6c 65 2c 20 |rarily v|isible, |
|00001f10| 62 75 74 20 77 69 6c 6c | 20 62 65 20 65 72 61 73 |but will| be eras|
|00001f20| 65 64 20 77 68 65 6e 20 | 79 6f 75 20 68 69 74 20 |ed when |you hit |
|00001f30| 72 65 74 75 72 6e 2e 0a | 28 54 68 69 73 20 68 61 |return..|(This ha|
|00001f40| 70 70 65 6e 73 20 61 75 | 74 6f 6d 61 74 69 63 61 |ppens au|tomatica|
|00001f50| 6c 6c 79 3b 20 74 68 65 | 72 65 20 69 73 20 6e 6f |lly; the|re is no|
|00001f60| 20 73 70 65 63 69 61 6c | 20 70 61 73 73 77 6f 72 | special| passwor|
|00001f70| 64 20 70 72 6f 63 65 73 | 73 69 6e 67 2e 29 0a 0a |d proces|sing.)..|
|00001f80| 57 68 65 6e 20 79 6f 75 | 20 6c 6f 67 20 69 6e 20 |When you| log in |
|00001f90| 74 6f 20 61 20 64 69 66 | 66 65 72 65 6e 74 20 6d |to a dif|ferent m|
|00001fa0| 61 63 68 69 6e 65 2c 20 | 79 6f 75 20 6e 65 65 64 |achine, |you need|
|00001fb0| 20 74 6f 20 73 70 65 63 | 69 66 79 20 74 68 65 0a | to spec|ify the.|
|00001fc0| 74 79 70 65 20 6f 66 20 | 74 65 72 6d 69 6e 61 6c |type of |terminal|
|00001fd0| 20 79 6f 75 72 20 75 73 | 69 6e 67 2e 20 20 20 49 | your us|ing. I|
|00001fe0| 66 20 79 6f 75 20 61 72 | 65 20 74 61 6c 6b 69 6e |f you ar|e talkin|
|00001ff0| 67 20 74 6f 20 61 20 42 | 6f 75 72 6e 65 2d 63 6f |g to a B|ourne-co|
|00002000| 6d 70 61 74 69 62 6c 65 | 0a 73 68 65 6c 6c 2c 20 |mpatible|.shell, |
|00002010| 61 6e 64 20 79 6f 75 72 | 20 73 79 73 74 65 6d 20 |and your| system |
|00002020| 75 6e 64 65 72 73 74 61 | 6e 64 73 20 74 68 65 20 |understa|nds the |
|00002030| 40 63 6f 64 65 7b 54 45 | 52 4d 43 41 50 7d 20 76 |@code{TE|RMCAP} v|
|00002040| 61 72 69 61 62 6c 65 2c | 0a 79 6f 75 20 63 61 6e |ariable,|.you can|
|00002050| 20 75 73 65 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 | use the| command|
|00002060| 20 40 6b 62 64 7b 4d 2d | 78 20 73 68 65 6c 6c 2d | @kbd{M-|x shell-|
|00002070| 73 65 6e 64 2d 74 65 72 | 6d 63 61 70 7d 2c 20 77 |send-ter|mcap}, w|
|00002080| 68 69 63 68 0a 73 65 6e | 64 73 20 61 20 73 74 72 |hich.sen|ds a str|
|00002090| 69 6e 67 20 73 70 65 63 | 69 66 79 69 6e 67 20 74 |ing spec|ifying t|
|000020a0| 68 65 20 74 65 72 6d 69 | 6e 61 6c 20 74 79 70 65 |he termi|nal type|
|000020b0| 20 61 6e 64 20 73 69 7a | 65 2e 0a 28 54 68 69 73 | and siz|e..(This|
|000020c0| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 61 6c 73 6f | command| is also|
|000020d0| 20 75 73 65 66 75 6c 20 | 61 66 74 65 72 20 74 68 | useful |after th|
|000020e0| 65 20 77 69 6e 64 6f 77 | 20 68 61 73 20 63 68 61 |e window| has cha|
|000020f0| 6e 67 65 64 20 73 69 7a | 65 2e 29 0a 0a 49 66 20 |nged siz|e.)..If |
|00002100| 79 6f 75 20 6e 65 65 64 | 20 74 6f 20 73 70 65 63 |you need| to spec|
|00002110| 69 66 79 20 74 68 65 20 | 74 65 72 6d 69 6e 61 6c |ify the |terminal|
|00002120| 20 74 79 70 65 20 6d 61 | 6e 75 61 6c 6c 79 2c 20 | type ma|nually, |
|00002130| 79 6f 75 20 63 61 6e 20 | 74 72 79 20 74 68 65 0a |you can |try the.|
|00002140| 74 65 72 6d 69 6e 61 6c | 20 74 79 70 65 73 20 22 |terminal| types "|
|00002150| 61 6e 73 69 22 20 6f 72 | 20 22 76 74 31 30 30 22 |ansi" or| "vt100"|
|00002160| 2e 0a 0a 59 6f 75 20 63 | 61 6e 20 6f 66 20 63 6f |...You c|an of co|
|00002170| 75 72 73 65 20 72 75 6e | 20 67 64 62 20 6f 6e 20 |urse run| gdb on |
|00002180| 74 68 61 74 20 72 65 6d | 6f 74 65 20 63 6f 6d 70 |that rem|ote comp|
|00002190| 75 74 65 72 2e 20 20 4f | 6e 65 20 75 73 65 66 75 |uter. O|ne usefu|
|000021a0| 6c 0a 74 72 69 63 6b 3a | 20 20 49 66 20 79 6f 75 |l.trick:| If you|
|000021b0| 20 69 6e 76 6f 6b 65 20 | 67 64 62 20 77 69 74 68 | invoke |gdb with|
|000021c0| 20 74 68 65 20 40 63 6f | 64 65 7b 2d 2d 66 75 6c | the @co|de{--ful|
|000021d0| 6c 6e 61 6d 65 7d 20 6f | 70 74 69 6f 6e 2c 0a 69 |lname} o|ption,.i|
|000021e0| 74 20 77 69 6c 6c 20 73 | 65 6e 64 20 73 70 65 63 |t will s|end spec|
|000021f0| 69 61 6c 20 63 6f 6d 6d | 61 6e 64 73 20 74 6f 20 |ial comm|ands to |
|00002200| 45 6d 61 63 73 20 74 68 | 61 74 20 77 69 6c 6c 20 |Emacs th|at will |
|00002210| 63 61 75 73 65 20 45 6d | 61 63 73 20 74 6f 0a 70 |cause Em|acs to.p|
|00002220| 6f 70 20 75 70 20 74 68 | 65 20 73 6f 75 72 63 65 |op up th|e source|
|00002230| 20 66 69 6c 65 73 20 79 | 6f 75 27 72 65 20 64 65 | files y|ou're de|
|00002240| 62 75 67 67 69 6e 67 2e | 20 20 54 68 69 73 20 77 |bugging.| This w|
|00002250| 69 6c 6c 20 77 6f 72 6b | 0a 77 68 65 74 68 65 72 |ill work|.whether|
|00002260| 20 6f 72 20 6e 6f 74 20 | 67 64 62 20 69 73 20 72 | or not |gdb is r|
|00002270| 75 6e 6e 69 6e 67 20 6f | 6e 20 61 20 64 69 66 66 |unning o|n a diff|
|00002280| 65 72 65 6e 74 20 63 6f | 6d 70 75 74 65 72 20 74 |erent co|mputer t|
|00002290| 68 61 6e 20 45 6d 61 63 | 73 2c 0a 61 73 73 75 6d |han Emac|s,.assum|
|000022a0| 69 6e 67 20 63 61 6e 20 | 61 63 63 65 73 73 20 74 |ing can |access t|
|000022b0| 68 65 20 73 6f 75 72 63 | 65 20 66 69 6c 65 73 20 |he sourc|e files |
|000022c0| 73 70 65 63 69 66 69 65 | 64 20 62 79 20 67 64 62 |specifie|d by gdb|
|000022d0| 2e 0a 0a 40 6e 6f 64 65 | 20 50 61 67 69 6e 67 0a |...@node| Paging.|
|000022e0| 40 73 65 63 74 69 6f 6e | 20 50 61 67 69 6e 67 0a |@section| Paging.|
|000022f0| 0a 57 68 65 6e 20 74 68 | 65 20 70 61 67 65 72 20 |.When th|e pager |
|00002300| 69 73 20 65 6e 61 62 6c | 65 64 2c 20 45 6d 61 63 |is enabl|ed, Emac|
|00002310| 73 20 77 69 6c 6c 20 22 | 70 61 75 73 65 22 20 61 |s will "|pause" a|
|00002320| 66 74 65 72 20 65 61 63 | 68 20 73 63 72 65 65 6e |fter eac|h screen|
|00002330| 66 75 6c 0a 6f 66 20 6f | 75 74 70 75 74 20 28 73 |ful.of o|utput (s|
|00002340| 69 6e 63 65 20 74 68 65 | 20 6c 61 73 74 20 69 6e |ince the| last in|
|00002350| 70 75 74 20 73 65 6e 74 | 20 74 6f 20 74 68 65 20 |put sent| to the |
|00002360| 69 6e 66 65 72 69 6f 72 | 29 2e 0a 49 74 20 77 69 |inferior|)..It wi|
|00002370| 6c 6c 20 65 6e 74 65 72 | 20 22 70 61 67 65 72 22 |ll enter| "pager"|
|00002380| 20 6d 6f 64 65 2c 20 77 | 68 69 63 68 20 66 65 65 | mode, w|hich fee|
|00002390| 6c 73 20 61 20 6c 6f 74 | 20 6c 69 6b 65 20 74 68 |ls a lot| like th|
|000023a0| 65 20 22 6d 6f 72 65 22 | 0a 70 72 6f 67 72 61 6d |e "more"|.program|
|000023b0| 3a 20 20 54 79 70 69 6e | 67 20 61 20 73 70 61 63 |: Typin|g a spac|
|000023c0| 65 20 72 65 71 75 65 73 | 74 73 20 61 6e 6f 74 68 |e reques|ts anoth|
|000023d0| 65 72 20 73 63 72 65 65 | 6e 66 75 6c 20 6f 66 20 |er scree|nful of |
|000023e0| 6f 75 74 70 75 74 2e 0a | 4f 74 68 65 72 20 63 6f |output..|Other co|
|000023f0| 6d 6d 61 6e 64 73 20 72 | 65 71 75 65 73 74 20 6d |mmands r|equest m|
|00002400| 6f 72 65 20 6f 72 20 6c | 65 73 73 20 6f 75 74 70 |ore or l|ess outp|
|00002410| 75 74 2c 20 6f 72 20 73 | 63 72 6f 6c 6c 20 62 61 |ut, or s|croll ba|
|00002420| 63 6b 77 61 72 64 73 0a | 69 6e 20 74 68 65 20 40 |ckwards.|in the @|
|00002430| 63 6f 64 65 7b 74 65 72 | 6d 7d 20 62 75 66 66 65 |code{ter|m} buffe|
|00002440| 72 2e 20 20 49 6e 20 70 | 61 67 65 72 20 6d 6f 64 |r. In p|ager mod|
|00002450| 65 2c 20 74 79 70 65 20 | 40 6b 62 64 7b 68 7d 20 |e, type |@kbd{h} |
|00002460| 6f 72 20 40 6b 62 64 7b | 3f 7d 0a 74 6f 20 64 69 |or @kbd{|?}.to di|
|00002470| 73 70 6c 61 79 20 61 20 | 68 65 6c 70 20 6d 65 73 |splay a |help mes|
|00002480| 73 61 67 65 20 6c 69 73 | 74 69 6e 67 20 61 6c 6c |sage lis|ting all|
|00002490| 20 74 68 65 20 61 76 61 | 69 6c 61 62 6c 65 20 70 | the ava|ilable p|
|000024a0| 61 67 65 72 20 6d 6f 64 | 65 20 63 6f 6d 6d 61 6e |ager mod|e comman|
|000024b0| 64 73 2e 0a 0a 49 6e 20 | 65 69 74 68 65 72 20 63 |ds...In |either c|
|000024c0| 68 61 72 61 63 74 65 72 | 20 6f 72 20 6c 69 6e 65 |haracter| or line|
|000024d0| 20 6d 6f 64 65 2c 20 74 | 79 70 65 20 40 6b 62 64 | mode, t|ype @kbd|
|000024e0| 7b 43 2d 63 20 70 7d 20 | 74 6f 20 65 6e 61 62 6c |{C-c p} |to enabl|
|000024f0| 65 20 70 61 67 69 6e 67 | 2c 0a 61 6e 64 20 40 6b |e paging|,.and @k|
|00002500| 62 64 7b 43 2d 63 20 44 | 7d 20 74 6f 20 64 69 73 |bd{C-c D|} to dis|
|00002510| 61 62 6c 65 20 69 74 2e | 0a 0a 40 6e 6f 64 65 20 |able it.|..@node |
|00002520| 54 65 72 6d 69 6e 61 6c | 20 65 73 63 61 70 65 73 |Terminal| escapes|
|00002530| 0a 40 73 65 63 74 69 6f | 6e 20 54 65 72 6d 69 6e |.@sectio|n Termin|
|00002540| 61 6c 20 45 73 63 61 70 | 65 20 73 65 71 75 65 6e |al Escap|e sequen|
|00002550| 63 65 73 0a 0a 41 20 70 | 72 6f 67 72 61 6d 20 74 |ces..A p|rogram t|
|00002560| 68 61 74 20 64 6f 65 73 | 20 22 67 72 61 70 68 69 |hat does| "graphi|
|00002570| 63 73 22 20 6f 6e 20 61 | 20 74 65 72 6d 69 6e 61 |cs" on a| termina|
|00002580| 6c 20 63 6f 6e 74 72 6f | 6c 73 20 74 68 65 0a 74 |l contro|ls the.t|
|00002590| 65 72 6d 69 6e 61 6c 20 | 62 79 20 73 65 6e 64 69 |erminal |by sendi|
|000025a0| 6e 67 20 73 74 72 69 6e | 67 73 20 63 61 6c 6c 65 |ng strin|gs calle|
|000025b0| 64 20 40 64 66 6e 7b 74 | 65 72 6d 69 6e 61 6c 20 |d @dfn{t|erminal |
|000025c0| 65 73 63 61 70 65 20 73 | 65 71 75 65 6e 63 65 73 |escape s|equences|
|000025d0| 7d 0a 74 68 61 74 20 74 | 68 65 20 74 65 72 6d 69 |}.that t|he termi|
|000025e0| 6e 61 6c 20 28 6f 72 20 | 74 65 72 6d 69 6e 61 6c |nal (or |terminal|
|000025f0| 20 65 6d 75 6c 61 74 6f | 72 29 20 69 6e 74 65 72 | emulato|r) inter|
|00002600| 70 72 65 74 73 20 61 73 | 20 73 70 65 63 69 61 6c |prets as| special|
|00002610| 20 63 6f 6d 6d 61 6e 64 | 73 2e 0a 54 68 65 20 40 | command|s..The @|
|00002620| 63 6f 64 65 7b 74 65 72 | 6d 7d 20 6d 6f 64 65 20 |code{ter|m} mode |
|00002630| 69 6e 63 6c 75 64 65 73 | 20 61 20 74 65 72 6d 69 |includes| a termi|
|00002640| 6e 61 6c 20 65 6d 75 6c | 61 74 6f 72 20 74 68 61 |nal emul|ator tha|
|00002650| 74 20 75 6e 64 65 72 73 | 74 61 6e 64 73 0a 73 74 |t unders|tands.st|
|00002660| 61 6e 64 61 72 64 20 41 | 4e 53 49 20 65 73 63 61 |andard A|NSI esca|
|00002670| 70 65 20 73 65 71 75 65 | 6e 63 65 73 2c 20 6f 72 |pe seque|nces, or|
|00002680| 69 67 69 6e 61 6c 6c 79 | 20 70 6f 70 75 6c 61 72 |iginally| popular|
|00002690| 69 7a 65 64 20 62 79 20 | 56 54 31 30 30 20 74 65 |ized by |VT100 te|
|000026a0| 72 6d 69 6e 61 6c 73 2c | 0a 61 6e 64 20 6e 6f 77 |rminals,|.and now|
|000026b0| 20 75 73 65 64 20 62 79 | 20 74 68 65 20 40 63 6f | used by| the @co|
|000026c0| 64 65 7b 78 74 65 72 6d | 7d 20 70 72 6f 67 72 61 |de{xterm|} progra|
|000026d0| 6d 20 61 6e 64 20 6d 6f | 73 74 20 6d 6f 64 65 72 |m and mo|st moder|
|000026e0| 6e 20 74 65 72 6d 69 6e | 61 6c 0a 65 6d 75 6c 61 |n termin|al.emula|
|000026f0| 74 6f 72 20 73 6f 66 74 | 77 61 72 65 2e 0a 0a 40 |tor soft|ware...@|
|00002700| 6d 65 6e 75 0a 2a 20 43 | 75 72 73 6f 72 20 6d 6f |menu.* C|ursor mo|
|00002710| 74 69 6f 6e 3a 3a 20 45 | 73 63 61 70 65 20 73 65 |tion:: E|scape se|
|00002720| 71 75 65 6e 63 65 73 20 | 74 6f 20 6d 6f 76 65 20 |quences |to move |
|00002730| 74 68 65 20 63 75 72 73 | 6f 72 0a 2a 20 45 72 61 |the curs|or.* Era|
|00002740| 73 69 6e 67 3a 3a 20 45 | 73 63 61 70 65 20 63 6f |sing:: E|scape co|
|00002750| 6d 6d 61 6e 64 73 20 66 | 6f 72 20 65 72 61 73 69 |mmands f|or erasi|
|00002760| 6e 67 20 74 65 78 74 0a | 2a 20 49 6e 73 65 72 74 |ng text.|* Insert|
|00002770| 69 6e 67 20 61 6e 64 20 | 64 65 6c 65 74 69 6e 67 |ing and |deleting|
|00002780| 3a 3a 20 45 73 63 61 70 | 65 20 73 65 71 75 65 6e |:: Escap|e sequen|
|00002790| 63 65 73 20 74 6f 20 69 | 6e 73 65 72 74 20 61 6e |ces to i|nsert an|
|000027a0| 64 20 64 65 6c 65 74 65 | 20 74 65 78 74 0a 2a 20 |d delete| text.* |
|000027b0| 53 63 72 6f 6c 6c 69 6e | 67 3a 3a 20 45 73 63 61 |Scrollin|g:: Esca|
|000027c0| 70 65 20 73 65 71 75 65 | 6e 63 65 73 20 74 6f 20 |pe seque|nces to |
|000027d0| 73 63 72 6f 6c 6c 20 70 | 61 72 74 20 6f 66 20 74 |scroll p|art of t|
|000027e0| 68 65 20 76 69 73 69 62 | 6c 65 20 77 69 6e 64 6f |he visib|le windo|
|000027f0| 77 0a 2a 20 43 6f 6d 6d | 61 6e 64 20 68 6f 6f 6b |w.* Comm|and hook|
|00002800| 3a 3a 0a 2a 20 4d 69 73 | 63 65 6c 6c 61 6e 65 6f |::.* Mis|cellaneo|
|00002810| 75 73 20 65 73 63 61 70 | 65 73 3a 3a 0a 40 65 6e |us escap|es::.@en|
|00002820| 64 20 6d 65 6e 75 0a 0a | 70 72 69 6e 74 69 6e 67 |d menu..|printing|
|00002830| 20 63 68 61 72 73 0a 0a | 74 61 62 0a 0a 4c 46 0a | chars..|tab..LF.|
|00002840| 0a 40 6e 6f 64 65 20 43 | 75 72 73 6f 72 20 6d 6f |.@node C|ursor mo|
|00002850| 74 69 6f 6e 0a 40 73 75 | 62 73 65 63 74 69 6f 6e |tion.@su|bsection|
|00002860| 20 45 73 63 61 70 65 20 | 73 65 71 75 65 6e 63 65 | Escape |sequence|
|00002870| 73 20 74 6f 20 6d 6f 76 | 65 20 74 68 65 20 63 75 |s to mov|e the cu|
|00002880| 72 73 6f 72 0a 0a 40 74 | 61 62 6c 65 0a 40 69 74 |rsor..@t|able.@it|
|00002890| 65 6d 20 52 45 54 55 52 | 4e 0a 4d 6f 76 65 73 20 |em RETUR|N.Moves |
|000028a0| 74 6f 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |to the b|eginning|
|000028b0| 20 6f 66 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | of the |current |
|000028c0| 73 63 72 65 65 6e 20 6c | 69 6e 65 2e 0a 0a 40 69 |screen l|ine...@i|
|000028d0| 74 65 6d 20 43 2d 62 0a | 4d 6f 76 65 73 20 62 61 |tem C-b.|Moves ba|
|000028e0| 63 6b 77 61 72 64 73 20 | 6f 6e 65 20 63 6f 6c 75 |ckwards |one colu|
|000028f0| 6d 6e 2e 20 20 28 54 61 | 62 73 20 61 72 65 20 62 |mn. (Ta|bs are b|
|00002900| 72 6f 6b 65 6e 20 75 70 | 20 69 66 20 6e 65 65 64 |roken up| if need|
|00002910| 65 64 2e 29 0a 40 63 6f | 6d 6d 65 6e 74 20 4c 69 |ed.).@co|mment Li|
|00002920| 6e 65 20 77 72 61 70 20 | 46 49 58 4d 45 0a 0a 40 |ne wrap |FIXME..@|
|00002930| 69 74 65 6d 20 45 73 63 | 20 5b 20 52 20 3b 20 43 |item Esc| [ R ; C|
|00002940| 20 48 0a 4d 6f 76 65 20 | 74 6f 20 73 63 72 65 65 | H.Move |to scree|
|00002950| 6e 20 72 6f 77 20 52 2c | 20 73 63 72 65 65 6e 20 |n row R,| screen |
|00002960| 63 6f 6c 75 6d 6e 20 43 | 2c 20 77 68 65 72 65 20 |column C|, where |
|00002970| 28 52 3d 31 29 20 69 73 | 20 74 68 65 20 74 6f 70 |(R=1) is| the top|
|00002980| 20 72 6f 77 2c 0a 61 6e | 64 20 28 43 3d 31 29 20 | row,.an|d (C=1) |
|00002990| 69 73 20 74 68 65 20 6c | 65 66 74 6d 6f 73 74 20 |is the l|eftmost |
|000029a0| 63 6f 6c 75 6d 6e 2e 20 | 20 44 65 66 61 75 6c 74 |column. | Default|
|000029b0| 73 20 61 72 65 20 52 3d | 31 20 61 6e 64 20 43 3d |s are R=|1 and C=|
|000029c0| 31 2e 0a 0a 40 69 74 65 | 6d 20 45 73 63 20 5b 20 |1...@ite|m Esc [ |
|000029d0| 4e 20 41 0a 4d 6f 76 65 | 20 4e 20 28 64 65 66 61 |N A.Move| N (defa|
|000029e0| 75 6c 74 20 31 29 20 73 | 63 72 65 65 6e 20 6c 69 |ult 1) s|creen li|
|000029f0| 6e 65 73 20 75 70 2e 0a | 40 69 74 65 6d 20 45 73 |nes up..|@item Es|
|00002a00| 63 20 5b 20 4e 20 42 0a | 4d 6f 76 65 20 4e 20 28 |c [ N B.|Move N (|
|00002a10| 64 65 66 61 75 6c 74 20 | 31 29 20 73 63 72 65 65 |default |1) scree|
|00002a20| 6e 20 6c 69 6e 65 73 20 | 64 6f 77 6e 2e 0a 40 69 |n lines |down..@i|
|00002a30| 74 65 6d 20 45 73 63 20 | 5b 20 4e 20 43 0a 4d 6f |tem Esc |[ N C.Mo|
|00002a40| 76 65 20 4e 20 28 64 65 | 66 61 75 6c 74 20 31 29 |ve N (de|fault 1)|
|00002a50| 20 63 6f 6c 75 6d 6e 73 | 20 72 69 67 68 74 2e 0a | columns| right..|
|00002a60| 40 69 74 65 6d 20 45 73 | 63 20 5b 20 4e 20 44 0a |@item Es|c [ N D.|
|00002a70| 4d 6f 76 65 20 4e 20 28 | 64 65 66 61 75 6c 74 20 |Move N (|default |
|00002a80| 31 29 20 63 6f 6c 75 6d | 6e 73 20 6c 65 66 74 2e |1) colum|ns left.|
|00002a90| 0a 40 65 6e 64 20 74 61 | 62 6c 65 0a 0a 40 6e 6f |.@end ta|ble..@no|
|00002aa0| 64 65 20 45 72 61 73 69 | 6e 67 0a 40 73 75 62 73 |de Erasi|ng.@subs|
|00002ab0| 65 63 74 69 6f 6e 20 45 | 73 63 61 70 65 20 63 6f |ection E|scape co|
|00002ac0| 6d 6d 61 6e 64 73 20 66 | 6f 72 20 65 72 61 73 69 |mmands f|or erasi|
|00002ad0| 6e 67 20 74 65 78 74 0a | 0a 54 68 65 73 65 20 63 |ng text.|.These c|
|00002ae0| 6f 6d 6d 61 6e 64 73 20 | 22 65 72 61 73 65 22 20 |ommands |"erase" |
|00002af0| 70 61 72 74 20 6f 66 20 | 74 68 65 20 73 75 62 2d |part of |the sub-|
|00002b00| 62 75 66 66 65 72 2e 0a | 45 72 61 73 69 6e 67 20 |buffer..|Erasing |
|00002b10| 6d 65 61 6e 73 20 72 65 | 70 6c 61 63 69 6e 67 20 |means re|placing |
|00002b20| 62 79 20 77 68 69 74 65 | 20 73 70 61 63 65 3b 20 |by white| space; |
|00002b30| 69 74 20 69 73 20 6e 6f | 74 20 74 68 65 20 73 61 |it is no|t the sa|
|00002b40| 6d 65 20 61 73 20 64 65 | 6c 65 74 69 6e 67 2e 0a |me as de|leting..|
|00002b50| 54 68 65 20 72 65 6c 61 | 74 69 76 65 20 73 63 72 |The rela|tive scr|
|00002b60| 65 65 6e 20 70 6f 73 69 | 74 69 6f 6e 73 20 6f 66 |een posi|tions of|
|00002b70| 20 74 68 69 6e 67 73 20 | 74 68 61 74 20 61 72 65 | things |that are|
|00002b80| 20 6e 6f 74 20 65 72 61 | 73 65 64 20 72 65 6d 61 | not era|sed rema|
|00002b90| 69 6e 0a 75 6e 63 68 61 | 6e 67 65 64 20 77 69 74 |in.uncha|nged wit|
|00002ba0| 68 20 65 61 63 68 20 6f | 74 68 65 72 2c 20 61 73 |h each o|ther, as|
|00002bb0| 20 64 6f 65 73 20 74 68 | 65 20 72 65 6c 61 74 69 | does th|e relati|
|00002bc0| 76 65 20 63 75 72 73 6f | 72 20 70 6f 73 69 74 69 |ve curso|r positi|
|00002bd0| 6f 6e 2e 0a 0a 40 74 61 | 62 6c 65 0a 40 69 74 65 |on...@ta|ble.@ite|
|00002be0| 6d 20 45 20 5b 20 4a 0a | 45 72 61 73 65 20 66 72 |m E [ J.|Erase fr|
|00002bf0| 6f 6d 20 63 75 72 73 6f | 72 20 74 6f 20 65 6e 64 |om curso|r to end|
|00002c00| 20 6f 66 20 73 63 72 65 | 65 6e 2e 0a 40 69 74 65 | of scre|en..@ite|
|00002c10| 6d 20 45 20 5b 20 30 20 | 4a 0a 53 61 6d 65 20 61 |m E [ 0 |J.Same a|
|00002c20| 73 20 45 20 5b 20 4a 2e | 0a 40 69 74 65 6d 20 45 |s E [ J.|.@item E|
|00002c30| 20 5b 20 31 20 4a 0a 45 | 72 61 73 65 20 66 72 6f | [ 1 J.E|rase fro|
|00002c40| 6d 20 68 6f 6d 65 20 70 | 6f 73 69 74 69 6f 6e 20 |m home p|osition |
|00002c50| 74 6f 20 70 6f 69 6e 74 | 2e 0a 40 69 74 65 6d 20 |to point|..@item |
|00002c60| 45 20 5b 20 32 20 4a 0a | 45 72 61 73 65 20 77 68 |E [ 2 J.|Erase wh|
|00002c70| 6f 6c 65 20 73 75 62 2d | 62 75 66 66 65 72 2e 0a |ole sub-|buffer..|
|00002c80| 40 69 74 65 6d 20 45 20 | 5b 20 4b 0a 45 72 61 73 |@item E |[ K.Eras|
|00002c90| 65 20 66 72 6f 6d 20 70 | 6f 69 6e 74 20 74 6f 20 |e from p|oint to |
|00002ca0| 65 6e 64 20 6f 66 20 73 | 63 72 65 65 6e 20 6c 69 |end of s|creen li|
|00002cb0| 6e 65 2e 0a 40 69 74 65 | 6d 20 45 20 5b 20 30 20 |ne..@ite|m E [ 0 |
|00002cc0| 4b 0a 53 61 6d 65 20 61 | 73 20 45 20 5b 20 4b 2e |K.Same a|s E [ K.|
|00002cd0| 0a 40 69 74 65 6d 20 45 | 20 5b 20 31 20 4b 0a 45 |.@item E| [ 1 K.E|
|00002ce0| 72 61 73 65 20 66 72 6f | 6d 20 62 65 67 69 6e 6e |rase fro|m beginn|
|00002cf0| 69 6e 67 20 6f 66 20 73 | 63 72 65 65 6e 20 6c 69 |ing of s|creen li|
|00002d00| 6e 65 20 74 6f 20 70 6f | 69 6e 74 2e 0a 40 69 74 |ne to po|int..@it|
|00002d10| 65 6d 20 45 20 5b 20 32 | 20 4b 0a 45 72 61 73 65 |em E [ 2| K.Erase|
|00002d20| 20 77 68 6f 6c 65 20 73 | 63 72 65 65 6e 20 6c 69 | whole s|creen li|
|00002d30| 6e 65 2e 0a 40 65 6e 64 | 20 74 61 62 6c 65 0a 0a |ne..@end| table..|
|00002d40| 40 6e 6f 64 65 20 49 6e | 73 65 72 74 69 6e 67 20 |@node In|serting |
|00002d50| 61 6e 64 20 64 65 6c 65 | 74 69 6e 67 0a 40 73 75 |and dele|ting.@su|
|00002d60| 62 73 65 63 74 69 6f 6e | 20 45 73 63 61 70 65 20 |bsection| Escape |
|00002d70| 73 65 71 75 65 6e 63 65 | 73 20 74 6f 20 69 6e 73 |sequence|s to ins|
|00002d80| 65 72 74 20 61 6e 64 20 | 64 65 6c 65 74 65 20 74 |ert and |delete t|
|00002d90| 65 78 74 0a 0a 40 74 61 | 62 6c 65 0a 40 69 74 65 |ext..@ta|ble.@ite|
|00002da0| 6d 20 45 73 63 20 5b 20 | 4e 20 4c 0a 49 6e 73 65 |m Esc [ |N L.Inse|
|00002db0| 72 74 20 4e 20 28 64 65 | 66 61 75 6c 74 20 31 29 |rt N (de|fault 1)|
|00002dc0| 20 62 6c 61 6e 6b 20 6c | 69 6e 65 73 2e 0a 40 69 | blank l|ines..@i|
|00002dd0| 74 65 6d 20 45 73 63 20 | 5b 20 4e 20 4d 0a 44 65 |tem Esc |[ N M.De|
|00002de0| 6c 65 74 65 20 4e 20 28 | 64 65 66 61 75 6c 74 20 |lete N (|default |
|00002df0| 31 29 20 6c 69 6e 65 73 | 2e 0a 40 69 74 65 6d 20 |1) lines|..@item |
|00002e00| 45 73 63 20 5b 20 4e 20 | 50 0a 44 65 6c 65 74 65 |Esc [ N |P.Delete|
|00002e10| 20 4e 20 28 64 65 66 61 | 75 6c 74 20 31 29 20 63 | N (defa|ult 1) c|
|00002e20| 68 61 72 61 63 74 65 72 | 73 2e 0a 40 69 74 65 6d |haracter|s..@item|
|00002e30| 20 45 73 63 20 5b 20 4e | 20 40 40 0a 49 6e 73 65 | Esc [ N| @@.Inse|
|00002e40| 72 74 20 4e 20 28 64 65 | 66 61 75 6c 74 20 31 29 |rt N (de|fault 1)|
|00002e50| 20 73 70 61 63 65 73 2e | 0a 40 65 6e 64 20 74 61 | spaces.|.@end ta|
|00002e60| 62 6c 65 0a 0a 40 6e 6f | 64 65 20 53 63 72 6f 6c |ble..@no|de Scrol|
|00002e70| 6c 69 6e 67 0a 40 73 75 | 62 73 65 63 74 69 6f 6e |ling.@su|bsection|
|00002e80| 20 45 73 63 61 70 65 20 | 73 65 71 75 65 6e 63 65 | Escape |sequence|
|00002e90| 73 20 74 6f 20 73 63 72 | 6f 6c 6c 20 70 61 72 74 |s to scr|oll part|
|00002ea0| 20 6f 66 20 74 68 65 20 | 76 69 73 69 62 6c 65 20 | of the |visible |
|00002eb0| 77 69 6e 64 6f 77 0a 0a | 40 74 61 62 6c 65 0a 40 |window..|@table.@|
|00002ec0| 69 74 65 6d 20 45 73 63 | 20 44 0a 53 63 72 6f 6c |item Esc| D.Scrol|
|00002ed0| 6c 20 66 6f 72 77 61 72 | 64 20 6f 6e 65 20 73 63 |l forwar|d one sc|
|00002ee0| 72 65 65 6e 20 6c 69 6e | 65 2e 0a 0a 40 69 74 65 |reen lin|e...@ite|
|00002ef0| 6d 20 45 73 63 20 4d 0a | 53 63 72 6f 6c 6c 20 62 |m Esc M.|Scroll b|
|00002f00| 61 63 6b 77 61 72 64 73 | 20 6f 6e 65 20 73 63 72 |ackwards| one scr|
|00002f10| 65 65 6e 20 6c 69 6e 65 | 2e 0a 0a 40 69 74 65 6d |een line|...@item|
|00002f20| 20 45 73 63 20 5b 20 54 | 20 3b 20 42 20 72 0a 53 | Esc [ T| ; B r.S|
|00002f30| 65 74 20 74 68 65 20 73 | 63 72 6f 6c 6c 69 6e 67 |et the s|crolling|
|00002f40| 20 72 65 67 69 6f 6e 20 | 74 6f 20 62 65 20 66 72 | region |to be fr|
|00002f50| 6f 6d 20 6c 69 6e 65 73 | 20 54 20 64 6f 77 6e 20 |om lines| T down |
|00002f60| 74 6f 20 6c 69 6e 65 20 | 42 20 69 6e 63 6c 75 73 |to line |B inclus|
|00002f70| 69 76 65 2c 0a 77 68 65 | 72 65 20 6c 69 6e 65 20 |ive,.whe|re line |
|00002f80| 31 20 69 73 20 74 68 65 | 20 74 6f 70 6d 6f 73 74 |1 is the| topmost|
|00002f90| 20 6c 69 6e 65 2e 0a 40 | 65 6e 64 20 74 61 62 6c | line..@|end tabl|
|00002fa0| 65 0a 0a 40 6e 6f 64 65 | 20 43 6f 6d 6d 61 6e 64 |e..@node| Command|
|00002fb0| 20 68 6f 6f 6b 0a 40 73 | 75 62 73 65 63 74 69 6f | hook.@s|ubsectio|
|00002fc0| 6e 20 43 6f 6d 6d 61 6e | 64 20 68 6f 6f 6b 0a 0a |n Comman|d hook..|
|00002fd0| 49 66 20 40 6b 62 64 7b | 43 2d 7a 7d 20 69 73 20 |If @kbd{|C-z} is |
|00002fe0| 73 65 65 6e 2c 20 61 6e | 79 20 74 65 78 74 20 75 |seen, an|y text u|
|00002ff0| 70 20 74 6f 20 61 20 66 | 6f 6c 6c 6f 77 69 6e 67 |p to a f|ollowing|
|00003000| 20 40 6b 65 79 7b 4c 46 | 7d 20 69 73 20 73 63 61 | @key{LF|} is sca|
|00003010| 6e 6e 65 64 2e 0a 54 68 | 65 20 74 65 78 74 20 69 |nned..Th|e text i|
|00003020| 6e 20 62 65 74 77 65 65 | 6e 20 28 6e 6f 74 20 63 |n betwee|n (not c|
|00003030| 6f 75 6e 74 69 6e 67 20 | 74 68 65 20 69 6e 69 74 |ounting |the init|
|00003040| 69 61 6c 20 43 2d 7a 20 | 6f 72 20 74 68 65 20 66 |ial C-z |or the f|
|00003050| 69 6e 61 6c 20 4c 46 29 | 0a 69 73 20 70 61 73 73 |inal LF)|.is pass|
|00003060| 65 64 20 74 6f 20 74 68 | 65 20 66 75 6e 63 74 69 |ed to th|e functi|
|00003070| 6f 6e 20 74 68 61 74 20 | 69 73 20 74 68 65 20 76 |on that |is the v|
|00003080| 61 6c 75 65 20 6f 66 20 | 40 63 6f 64 65 7b 74 65 |alue of |@code{te|
|00003090| 72 6d 2d 63 6f 6d 6d 61 | 6e 64 2d 68 6f 6f 6b 7d |rm-comma|nd-hook}|
|000030a0| 2e 0a 0a 54 68 65 20 64 | 65 66 61 75 6c 74 20 76 |...The d|efault v|
|000030b0| 61 6c 75 65 20 6f 66 20 | 74 68 65 20 40 63 6f 64 |alue of |the @cod|
|000030c0| 65 7b 74 65 72 6d 2d 63 | 6f 6d 6d 61 6e 64 2d 68 |e{term-c|ommand-h|
|000030d0| 6f 6f 6b 7d 20 76 61 72 | 69 61 62 6c 65 0a 69 73 |ook} var|iable.is|
|000030e0| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 40 63 | the fun|ction @c|
|000030f0| 6f 64 65 7b 74 65 72 6d | 2d 63 6f 6d 6d 61 6e 64 |ode{term|-command|
|00003100| 2d 68 6f 6f 6b 7d 2c 20 | 77 68 69 63 68 20 68 61 |-hook}, |which ha|
|00003110| 6e 64 6c 65 73 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |ndles th|e follow|
|00003120| 69 6e 67 3a 0a 0a 40 74 | 61 62 6c 65 0a 40 69 74 |ing:..@t|able.@it|
|00003130| 65 6d 20 43 2d 7a 20 43 | 2d 7a 20 46 49 4c 45 4e |em C-z C|-z FILEN|
|00003140| 41 4d 45 3a 4c 49 4e 45 | 4e 55 4d 42 45 52 3a 49 |AME:LINE|NUMBER:I|
|00003150| 47 4e 4f 52 45 44 20 4c | 46 0a 53 65 74 20 74 65 |GNORED L|F.Set te|
|00003160| 72 6d 2d 70 65 6e 64 69 | 6e 67 2d 66 72 61 6d 65 |rm-pendi|ng-frame|
|00003170| 20 74 6f 20 40 63 6f 64 | 65 7b 28 63 6f 6e 73 20 | to @cod|e{(cons |
|00003180| 22 46 49 4c 45 4e 41 4d | 45 22 20 4c 49 4e 45 4e |"FILENAM|E" LINEN|
|00003190| 55 4d 42 45 52 29 7d 2e | 0a 57 68 65 6e 20 74 68 |UMBER)}.|.When th|
|000031a0| 65 20 62 75 66 66 65 72 | 20 69 73 20 64 69 73 70 |e buffer| is disp|
|000031b0| 6c 61 79 65 64 20 69 6e | 20 74 68 65 20 63 75 72 |layed in| the cur|
|000031c0| 72 65 6e 74 20 77 69 6e | 64 6f 77 2c 20 73 68 6f |rent win|dow, sho|
|000031d0| 77 0a 74 68 65 20 46 49 | 4c 45 4e 41 4d 45 20 69 |w.the FI|LENAME i|
|000031e0| 6e 20 74 68 65 20 6f 74 | 68 65 72 20 77 69 6e 64 |n the ot|her wind|
|000031f0| 6f 77 2c 20 61 6e 64 20 | 73 68 6f 77 20 61 6e 20 |ow, and |show an |
|00003200| 61 72 72 6f 77 20 61 74 | 20 4c 49 4e 45 4e 55 4d |arrow at| LINENUM|
|00003210| 42 45 52 2e 0a 47 64 62 | 20 65 6d 69 74 73 20 74 |BER..Gdb| emits t|
|00003220| 68 65 73 65 20 73 74 72 | 69 6e 67 73 20 77 68 65 |hese str|ings whe|
|00003230| 6e 20 69 6e 76 6f 6b 65 | 64 20 77 69 74 68 20 74 |n invoke|d with t|
|00003240| 68 65 20 66 6c 61 67 20 | 2d 2d 66 75 6c 6c 6e 61 |he flag |--fullna|
|00003250| 6d 65 2e 0a 54 68 69 73 | 20 69 73 20 75 73 65 64 |me..This| is used|
|00003260| 20 62 79 20 67 64 62 20 | 6d 6f 64 65 3b 20 79 6f | by gdb |mode; yo|
|00003270| 75 20 63 61 6e 20 61 6c | 73 6f 20 69 6e 76 6f 6b |u can al|so invok|
|00003280| 65 20 67 64 62 20 77 69 | 74 68 20 74 68 69 73 20 |e gdb wi|th this |
|00003290| 66 6c 61 67 0a 66 72 6f | 6d 20 73 68 65 6c 6c 20 |flag.fro|m shell |
|000032a0| 6d 6f 64 65 2e 0a 0a 40 | 69 74 65 6d 20 43 2d 7a |mode...@|item C-z|
|000032b0| 20 2f 20 44 49 52 4e 41 | 4d 45 20 4c 46 0a 53 65 | / DIRNA|ME LF.Se|
|000032c0| 74 20 74 68 65 20 64 69 | 72 65 63 74 6f 72 79 20 |t the di|rectory |
|000032d0| 6f 66 20 74 68 65 20 74 | 65 72 6d 20 62 75 66 66 |of the t|erm buff|
|000032e0| 65 72 20 74 6f 20 44 49 | 52 4e 41 4d 45 0a 0a 40 |er to DI|RNAME..@|
|000032f0| 69 74 65 6d 20 43 2d 7a | 20 21 20 4c 45 58 50 52 |item C-z| ! LEXPR|
|00003300| 20 4c 46 0a 52 65 61 64 | 20 61 6e 64 20 65 76 61 | LF.Read| and eva|
|00003310| 6c 75 61 74 65 20 4c 45 | 58 50 52 20 61 73 20 61 |luate LE|XPR as a|
|00003320| 20 4c 69 73 70 20 65 78 | 70 72 65 73 73 69 6f 6e | Lisp ex|pression|
|00003330| 2e 0a 54 68 65 20 72 65 | 73 75 6c 74 20 69 73 20 |..The re|sult is |
|00003340| 69 67 6e 6f 72 65 64 2e | 0a 40 65 6e 64 20 74 61 |ignored.|.@end ta|
|00003350| 62 6c 65 0a 0a 40 6e 6f | 64 65 20 4d 69 73 63 65 |ble..@no|de Misce|
|00003360| 6c 6c 61 6e 65 6f 75 73 | 20 65 73 63 61 70 65 73 |llaneous| escapes|
|00003370| 0a 40 73 75 62 73 65 63 | 74 69 6f 6e 20 4d 69 73 |.@subsec|tion Mis|
|00003380| 63 65 6c 6c 61 6e 65 6f | 75 73 20 65 73 63 61 70 |cellaneo|us escap|
|00003390| 65 73 0a 0a 40 74 61 62 | 6c 65 0a 40 69 74 65 6d |es..@tab|le.@item|
|000033a0| 20 43 2d 67 20 28 42 65 | 6c 6c 29 0a 43 61 6c 6c | C-g (Be|ll).Call|
|000033b0| 73 20 40 63 6f 64 65 7b | 28 62 65 65 70 20 74 29 |s @code{|(beep t)|
|000033c0| 7d 2e 0a 0a 40 69 74 65 | 6d 20 45 73 63 20 37 0a |}...@ite|m Esc 7.|
|000033d0| 53 61 76 65 20 63 75 72 | 73 6f 72 2e 0a 0a 40 69 |Save cur|sor...@i|
|000033e0| 74 65 6d 20 45 73 63 20 | 38 0a 52 65 73 74 6f 72 |tem Esc |8.Restor|
|000033f0| 65 20 63 75 72 73 6f 72 | 2e 0a 0a 40 69 74 65 6d |e cursor|...@item|
|00003400| 20 45 73 63 20 5b 20 34 | 37 20 68 0a 53 77 69 74 | Esc [ 4|7 h.Swit|
|00003410| 63 68 20 74 6f 20 74 68 | 65 20 61 6c 74 65 72 6e |ch to th|e altern|
|00003420| 61 74 65 20 73 75 62 2d | 62 75 66 66 65 72 2c 0a |ate sub-|buffer,.|
|00003430| 40 69 74 65 6d 20 45 73 | 63 20 5b 20 34 37 20 6c |@item Es|c [ 47 l|
|00003440| 0a 53 77 69 74 63 68 20 | 62 61 63 6b 20 74 6f 20 |.Switch |back to |
|00003450| 74 68 65 20 72 65 67 75 | 6c 61 72 20 73 75 62 2d |the regu|lar sub-|
|00003460| 62 75 66 66 65 72 2c 0a | 40 65 6e 64 20 74 61 62 |buffer,.|@end tab|
|00003470| 6c 65 0a 0a 40 62 79 65 | 0a |le..@bye|. |
+--------+-------------------------+-------------------------+--------+--------+